ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Close HyperTerminal Application using LabVIEW

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(4,511 Views)
Solution
Accepted by topic author Ray.R

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)

Message 2 of 3
(4,508 Views)

Thanks Britoa,

 

That was it.  I couldn't remember the name "taskkill".

 

R

0 Kudos
Message 3 of 3
(4,481 Views)