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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.