Terminate capability ....

paul paul at subsignal.org
Sun Dec 16 15:58:27 EST 2007


temp2 at cfl.rr.com schrieb:
> Hello,
> 
> I'm new to Python. I have a small task to do. I need to be able to
> find a running app (preferrably by name) and kill it. This is for the
> XP environment. What is best way to do this?
> Thanks,
import os

os.system('taskkill /IM explorer.exe')

cheers
  Paul




More information about the Python-list mailing list