win32com (VBScript to Python) problem

Tim Howarth tim at worthy.demon.co.uk
Tue Nov 25 07:58:43 EST 2003


In message <bpvho4$kon$1 at news-reader2.wanadoo.fr>
          "Michel Claveau" <No.Spam.mc at No.Spam.mclaveau.No.Spam.com> wrote:

> import win32com.client
> WMIService =
> win32com.client.GetObject(r"winmgmts:{impersonationLevel=impersonate,(Shutdo
> wn)}!\\CPU01\root\cimv2")
> 
> objs = WMIService.ExecQuery(r"Select * from Win32_OperatingSystem")
> for obj in objs:
>     obj.Reboot()



This gives me the same error 'int'  is not callable.

Maybe it's something to do with late/early binding ??

What version of Python/win32all have you used this on ?

-- 
___
 |im    ---- ARM Powered ----




More information about the Python-list mailing list