[python-win32] what's wrong with the wmi.Terminate() method?
Tim Golden
mail at timgolden.me.uk
Wed Jan 23 10:52:53 CET 2008
thunder thunder54007 wrote:
> hi, here is my script:
>
> import win32con
> import time
> import wmi
> c = wmi.WMI()
> for process in c.Win32_Process(name = "notepad.exe"):
> print process.ProcessId, process.Name
> process.Terminate ()
>
> when I have only one notepad.exe process in my system, this works fine,
> but when I have more than one notepad.exe , after terminal the first
> notepad.exe, the Terminate() for the second notepad.exe process will
> generate the following error:
Sorry. Recently-fixed bug. Please try the latest version:
http://timgolden.me.uk/python/downloads/wmi-1.3.2.zip
and let me know if it works.
TJG
More information about the python-win32
mailing list