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 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32