02-19-2009 02:30 AM
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.
02-19-2009 02:46 AM - edited 02-19-2009 02:48 AM
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.
Mike
02-19-2009 06:15 AM
Here is a VI using LabVIEW .net functions to get all process names. Same as using the task manager to get the processes.