TeleFlow Forums
http://teleflow.org/phpbb/

Computer name in Teleflow
http://teleflow.org/phpbb/viewtopic.php?f=10&t=302
Page 1 of 1

Author:  rbevers [ Fri Jan 06, 2006 8:22 am ]
Post subject: 

Can Teleflow determine what the name of the computer it is running on? I am building a redundant auto failover system that requires the applications to look in a database to see which server is primary. If the app is not running on the primary server, it shouldn't make any outgoing calls. <br> <br>Thanks, <br>Bob Bevers

Author:  Awgeewhiz [ Fri Jan 06, 2006 8:39 am ]
Post subject: 

If you are running XP you can create a cmd file with the following line. <br> <br>hostname > host.txt <br> <br>If you created a command file called hostname.cmd you could probably launch it from the run program step. <br> <br>This will output the name of the sytem to the text file. <br> <br>Open a DOS window and try it. <br> <br>Then you can use the Load Text step to read in the computer hostname.

Author:  Chris [ Fri Jan 06, 2006 10:35 am ]
Post subject: 

You can also use the DLL that ships with TeleFlow as part of the example of how to use the DLL Function step. The DLL is located at: <br>C:\Program Files\TeleFlow\Templates\Example\DLL Function <br> <br>Then, use the DLL Function step to use that DLL. <br>Function name to call: _GetEnv. Function parameters: COMPUTERNAME <br>Variable to recieve result field: Use something like @COMPUTER_NAME

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/