Terminate capability ....

2007-12-16 Thread temp2
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,
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Terminate capability ....

2007-12-16 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit :
 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?

1/ search the Windows XP APIs for such a task
2/ found out how you can call these APIs from Python

 Thanks,

You're welcome.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Terminate capability ....

2007-12-16 Thread paul
[EMAIL PROTECTED] 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

-- 
http://mail.python.org/mailman/listinfo/python-list