>
http://www.berezniker.com/content/pages/visual-foxpro/check-if-exe-running-and-optionally-terminate-it>
>>I know there are various ways to log that an application is still running and do checks from other programs to verify that, but what is the most efficient and easiest to use way of doing it?
Tore, I am a big fan of WMI, but I do not think it is appropriate in this case, as a program might be not working, but still the exe will be in memory. An alternative is to see how much CPU is using (also thru WMI), but I think is easier to just check a log because then you really know that is working.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges