Kill a named process in win2K not spawned by python

PoulsenL at PoulsenL at
Wed Aug 6 21:10:45 CEST 2003

Can someone give me a clue how to rewrite this kludgy workaround in python?

import os
from win32pdhutil import * 
pid = FindPerformanceAttributesByName("WINWORD")[0]
os.system("C:\CMDUtils\kill " + str(pid))


Loren Poulsen

This email and any attachments contain information from CapAnalysis, LLC, which may be confidential and/or privileged. The information is intended to be for the use of the individual or entity named on this email. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this email is prohibited. If you receive this email in error, please notify us by reply email immediately so that we can arrange for the retrieval of the original documents at no cost to you.

More information about the Python-list mailing list