windows script host and python
Alex Martelli
aleaxit at yahoo.com
Mon Mar 19 18:15:21 EST 2001
"Don Dwiggins" <dwig at advancedmp.net> wrote in message
news:mailman.985028069.29930.python-list at python.org...
[snip]
> >> processes = GetObject("winmgmts:{impersonationLevel=impersonate}").\
> >> InstancesOf("Win32_process")
[snip]
> > Cool! Is this supposed to be NT-only? It doesn't fly on my Win98 box.
>
> Actually, it fails on my NT workstation also:
[snip]
> File "e:\python20\win32com\client\__init__.py", line 87, in Moniker
> moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
> pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)
...but do you have WMI installed? AFAIK, it doesn't come as default
with either 98 or NT (perhaps 2000 and/or ME -- not sure) -- it has
to be downloaded from the MS site and installed.
Alex
More information about the Python-list
mailing list