windows script host and python

Eduard Hiti KatMouse at gmx.de
Sun Mar 18 05:58:04 EST 2001


I think WMI support can be added to Win98 with a download from microsoft.
Search for the WMI SDK on www.microsoft.com/downloads

"Tim Roberts" <timr at probo.com> wrote in message
news:lvf8bt4p6e6naq0vimgnkhs175eoqbajfr at 4ax.com...
| "Alex Martelli" <aleaxit at yahoo.com> wrote:
| >
| >Here, for example, is the "list all running processes" WMI scripting
| >example translated into Python:
| >
| >from win32com.client import GetObject
| >
| >processes = GetObject("winmgmts:{impersonationLevel=impersonate}").\
| >    InstancesOf("Win32_process")
| >
| >for process in processes:
| >    print process.Name
|
| Cool!  Is this supposed to be NT-only?  It doesn't fly on my Win98 box.
| --
| - Tim Roberts, timr at probo.com
|   Providenza & Boekelheide, Inc.





More information about the Python-list mailing list