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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trapping Procomm+ Exit?

Status
Not open for further replies.

paulbeck

Programmer
Jan 6, 2003
1
US
Is there a way to trap the exit of Procomm and perform some shutdown processing? In other words, is there an equivalent of startup.wax that always runs when Procomm stops. I don't want this to depend upon a script running at the time the user closes Procomm.
 
Unfortunately there is not a way to do this without a script running at all times. If a script was running, you could use the when userexit command to perform some type of exit processing.

aspect@aspectscripting.com
 
One handy way to do this is to set up all your "clean up" activity in a batch file. Once you've tested it to run, put the "c:\program files\procomm\programs\pw4.exe" as the first line of your batch.

From here on out use the batch to start Procomm. The batch will hold processing until the first line completes. So, once Procomm shuts down, your cleanup runs.

This works quite well on a Win2K machine. But be aware, if you run multiple instances of procomm this may not work. Something about muliples program occurrences lets the batch continue whether procomm ends or not.

Also, if youu want to have it start with a specific script, put the "script.wax" after the pw4.exe, but inside the quotes.


I hope that helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top