NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find out whether an exe program is running?

HI,
 
I'd like to run an executable program from TestStand.   Before I do that I would like to check whether this program is already running?
 
Can it be done?
 
Thanks
0 Kudos
Message 1 of 2
(2,637 Views)

Hey Rafi,

It can be done.  You have a couple options.  All of the processes are handled by the Operating System so you can possibly try:

1-  Call a code module that will call into the Windows API and get all the process and see if that particular one is executing.

2- Using ActiveX steps call into the Windows API to get all the process and see if that particular executable is running.

You may have to read more about the Windows API to do this but I also think there are some SDK functions available to you as well.  Here is a link to an MSDN example: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/enumerating_all_proces...

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 2
(2,615 Views)