[python-win32] killProcName.py not working for processes under user SYSTEM

Gerrat Rickert grickert at coldstorage.com
Wed May 3 00:06:44 CEST 2006


...well, I couldn't get a pure vbscript program to kill these processes
either, but I did find a utility that comes with winXP: taskkill; so
this works like a charm:

 

import os

name = 'Apache.exe'

os.system('taskkill /F /IM %s /T' % name)

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20060502/cd45f50f/attachment-0001.html 


More information about the Python-win32 mailing list