win32 process information, using win32 extension

Tim Golden tim.golden at viacom-outdoor.co.uk
Fri Oct 21 10:18:52 EDT 2005


[Java and Swing]

> i need to get information about the processes 
> running on a windows pc (98, 2k, xp)

> i can get the pid's using, win32process.EnumProcesses()
> but how can i get the name of the process, path 
> to process, etc.

You can probably do what you want with WMI. You'll have to
make sure to install Microsoft's WMI pack (or whatever it's
called) on the Win98 machines:

http://timgolden.me.uk/python/wmi_cookbook.html#running_processes

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list