General information
Category:
Windows API functions
Environment versions
Network:
Windows 2000 Server
>I was wondering if anybody knew of a way of determining if a certain process was currently running on a win2000/xp machine. In other words... I have a news gathering vfp8 exe running 24/7 on a win2k machine and lately there have been stability issues. I would like to be able to determine if the process is running. If it is not then take the appropriate action (restart, email myself, etc).
>
>Anyhow, any help on this matter would be greatly appreciated!
>
>Thanks,
>
>JM
Something like:
lo = GetObject("winmgmts://localhost/root/cimv2")
loVFP7 = lo.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'VFP7.exe'")
?loVFP7.Count
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only