Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple script needed 1

Status
Not open for further replies.

MikeArcade

Technical User
Oct 15, 2007
97
US
Hey guys, thanks in advance for any assistance you can give.
I have absolutely zero knowledge of scripting, and now i really need to learn. I am needing a procomm script to call a connection that i have programmed into my rapid connections list. if it helps the connection is named CDR
if there is a way to do this from the command line or from a batch file, that would be just as great.
 
The entire procedure is to open the com port, and start capturing the output from our PBX. then at the end of the day the computer will restart and the captured file will be written to a text file. Then on the restart i need the com port opened and text captured automatically. I can adjust the settings to open the com port on startup, but it doesnt capture the text.
I have set a data connection to open the port and capture text, but i cant get procomm to call that connection on startup.
Make Sense?
 
You want to use the following format in your script to dial the connection (connection name in the dial command below needs to appear exactly the same as it looks in your Connection Directory):

dial DATA "connection name"
while $DIALING
yield
endwhile

Following that you can use a waitfor command to verify that the connection was made successfully, if there is a prompt or other constant string that you can key on.

As for launching the script, you can do that through the Windows scheduler, a batch file, or just about any other mechanism. All you need to do is use a command line that looks like:

<path to Procomm>\pw5.exe script.wax

where you have your path to the Procomm install specified.

 
Works great. After i added the proc main and endproc.

Thanks so much for all your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top