From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

How to know if an application is running on XP or not

Is there any simple command, script or API can check if an application is still running on XP?


Firstly, the aaa.exe will exit, but it will take a bit time to terminate. bbb.exe need to check if aaa.exe has really exit.

After aaa.exe really exit, bbb.exe will overwrite aaa.exe with new copy and call aaa.exe again.

0 Kudos
Message 1 of 3

Hi turbot,

this link can help. You can also try to get a handle to your application. There is a Win API call "Get Handle by Name". It's part of user32.dll.



Message Edited by MikeS81 on 02-19-2009 09:48 AM
0 Kudos
Message 2 of 3

Here is a VI using LabVIEW .net functions to get all process names.  Same as using the task manager to get the processes.



Visualize the Solution


Download All
Message 3 of 3