thanks Tim,

On 06-08-2010 21:18, Tim Golden wrote:
>> but that looks quit more complicated than psutils,
>> besides that I believe that psutils is platform independant.
> 0.0829999446869
>
> Well, just to phrase is slightly differently:
>
> <code>
> import wmi
>
> c = wmi.WMI ()
> for p in c.Win32_Process (Name="xchat.exe"):
>   print p
>   break
> else:
>   print "Not found"
>
> </code>
>
that looks much better,
but still windows only ;-)

cheers,
Stef
> TJG
>

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to