11-21-2008 06:50 AM
I have a client who wants LabVIEW to close the HyperTerminal Application automatically is it has the serial port open.
Detecting that the serial port is already in use is simple. I already have a popup that tells the operator to close any communication application because the port is already in use; however, they want it done automatically.
HyperTerminal does not have ActiveX support and they will not go to the more professional version which does.
A long time ago, I had read a thread where it was possible to close (or open?) and application that did not have ActiveX support. I was hoping to use this similar approach.. Opening the app is simpler, but closing it is a different story. You need some sort of reference to that application to tell Windows which one to close. The OS in Win-XP.
Suggestions are welcomed.
R
Solved! Go to Solution.
11-21-2008 07:11 AM
http://www.howtogeek.com/howto/windows/kill-processes-from-the-windows-command-line/
OR
Taskkill (command line as well) http://technet.microsoft.com/en-us/library/bb491009.aspx
taskkill /IM hyperterm.exe
will kill all hyperterm windows open, BUT it will ask you if you want to close any open sessions, which I think you don't want.
taskkill /F /IM hyperterm.exe
does the trick (without chewing up the com port, I just tried)
11-21-2008 02:05 PM
Thanks Britoa,
That was it. I couldn't remember the name "taskkill".
R