[python-win32] process listing without COM/WMI

Roger Upole rwupole at msn.com
Sat Aug 27 00:23:41 CEST 2005


Here's a post from a few months back with some code to do that.
http://mail.python.org/pipermail/python-win32/2005-February/002943.html

       Roger

"mark mclarnon" wrote:
>I am in serious need of the ability to query the list of running
> process to check and see if an EXE (that I choose) is running under
> Python 2.4.1. I found an example to do this at the following url:
> 
> http://tgolden.sc.sabren.com/python/wmi_cookbook.html
> 
> and a similar example that uses GetObject('winmgmts:') but I recieve
> errors when I try to use these methods. I would like to use a 'pure'
> python approach as I see the win32process enumProcesses call.
> 
> Has anyone done this? 
> 
> mark


More information about the Python-win32 mailing list