Post new topic Reply to topic  [ 3 posts ] 

Board index : TeleFlow Forums : TeleFlow Designer & Simulator

Author Message
 Post subject:
PostPosted: Fri Jan 06, 2006 8:22 am 
Offline

Joined: Wed Aug 31, 2005 9:34 am
Posts: 7
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


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 8:39 am 
Offline

Joined: Mon Mar 15, 2004 3:55 pm
Posts: 35
Location: USA
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.


Back to top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 06, 2006 10:35 am 
Offline

Joined: Wed Mar 19, 2003 4:28 pm
Posts: 510
Location: Canada
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


Back to top
 Profile WWW 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

Board index : TeleFlow Forums : TeleFlow Designer & Simulator


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.