why? [win32com/WMI]

Claudio Grondi claudio.grondi at freenet.de
Wed Mar 1 11:19:13 EST 2006


Sergey wrote:
> import win32com.client
> 
> loc = win32com.client.Dispatch("WbemScripting.SWbemLocator")
> svc = loc.ConnectServer("srv", "root/cimv2", "Admin at zzz.ru", "******")
> sys = svc.get("Win32_Process")
> sys.create("notepad.exe")
> 
> =>
> 
> Traceback (most recent call last):
> File "remote.py", line 6, in ?
> sys.create("notepad.exe")
> TypeError: 'int' object is not callable 
> 
> 
I have no idea what are you doing in your code or if the following has 
something to do with your problem, but sometimes it good to know, that 
Windows requires Unicode strings as parameter and giving full path file 
names is always better than to rely on some default mechanisms.

Claudio



More information about the Python-list mailing list