471,347 Members | 1,682 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,347 software developers and data experts.

Terminate capability ....

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,
Dec 16 '07 #1
2 923
te***@cfl.rr.com 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.
Dec 16 '07 #2
te***@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

Dec 16 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by abovetreeline | last post: by
4 posts views Thread by Dr. J | last post: by
3 posts views Thread by Keith Grefski | last post: by
3 posts views Thread by Peter Neuburger via .NET 247 | last post: by
7 posts views Thread by fyi85 | last post: by
2 posts views Thread by Draw | last post: by
3 posts views Thread by Laurence | last post: by
1 post views Thread by Justin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.