[Tutor] XP & catching execl o/p ?
Tim.Golden at viacom-outdoor.co.uk
Wed Dec 6 09:48:05 CET 2006
| Struggling with python & XP again. My app needs to know if a
| certain program is running on my XP box
As a complete alternative, consider using WMI:
<code - UNTESTED>
import os, sys
c = wmi.WMI ()
for process in c.Win32_Process (Name="excel.exe"):
print "Excel is running"
print "Excel is not running"
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:
More information about the Tutor