See when process exits in Windows XP
rtilley at vt.edu
Sun Oct 17 04:59:28 CEST 2004
I posted the wrong function... here's the one that works:
pids = win32pdhutil.FindPerformanceAttributesByName(procname)
if len(pids) > 0:
## If ntbackup is running, loop until it closes.
print "ntbackup is running... waiting for it to exit."
## ntbackup is not running.
More information about the Python-list