Windows - window status (Running vs Not Responding)

Tim Golden mail at
Fri Apr 11 22:22:18 CEST 2008

Mike Driscoll wrote:
> If you're better than I am, you can probably translate this to the
> Python equivalent. Zenoss also has some monitoring software that's
> open source Python code.

I'm afraid that article only allows you to determine whether
a known executable is running, If that's what the OP's after,
then you can do as much by querying WMI thusly:

import wmi
c = wmi.WMI ()

EXE = "notepad.exe"
for process in c.Win32_Process (Caption=EXE):
   print process
   print "None found"



More information about the Python-list mailing list