Portable way to tell if a process is still alive
Michel Claveau - MVP
enleverLesX_XXmcX at XmclavXeauX.com.invalid
Wed Dec 30 04:12:53 EST 2009
Hi!
For Windows, you can use the command-line tasklist
Example:
tasklist
tasklist /FI "IMAGENAME eq iexplore.exe"
tasklist /FI "PID eq 4044" /FO LIST
The last line is for known PID. Prior for search by (exe's) name.
Note than STATUS give if the process is RUNNING / NOT RESPONDING / etc.
And... tasklist /? for help.
@+
--
Michel Claveau
More information about the Python-list
mailing list