[Tutor] How to kill an app from python on windows?

Tim Golden Tim.Golden at viacom-outdoor.co.uk
Mon Dec 4 09:46:07 CET 2006


[Paulino]

| To launch an app one can state os.startfile('hello.pdf') and 
| the file is opened in acrobat .
| 
| And how can I kill the app from python, in order to, for 
| instance, rename the file?
| 
| Is it possible?

This link may get you started:

http://effbot.org/pyfaq/how-do-i-emulate-os-kill-in-windows.htm

although it may not apply, depending on the exact
circumstances of what you're doing.

TJG

________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________


More information about the Tutor mailing list