Python-Win32... As in win32 As in windows... :-)
----- Original Message ----- From: python-win32-bounces+rdahlstrom=directedge....@python.org <python-win32-bounces+rdahlstrom=directedge....@python.org> Cc: python-win32@python.org <python-win32@python.org> Sent: Fri Aug 06 18:34:55 2010 Subject: Re: [python-win32] fast test if (unknown) process is running ? Why not use Autoit ? 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 DISCLAIMER: This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. Direct Edge may, at its discretion, monitor and review the content of all e-mail communications. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32