Re: [python-win32] Fetching network interface instance names

2005-07-26 Thread Chris Miles
On 26 Jul 2005, at 00:04, Chris Miles wrote: > Thanks Mark. The "List Network Adapter Properties" script did the > trick. And it didn't need ActiveState Python to work, thankfully. I spoke too soon. Unfortunately the answers I get from COM are not compatible with win32pdh. Example: win32c

Re: [python-win32] Fetching network interface instance names

2005-07-26 Thread Schollnick, Benjamin
> >>http://www.microsoft.com/technet/scriptcenter/scripts/python > /pyindex.mspx > >>has some scripts that appear to do what you need. > > > >>(Quite cool that we can now post a microsoft.com address > for help with > >>Python scripts ;) > > > >Really, really cool. It's a hug of a giant. > > > >B

Re: [python-win32] Fetching network interface instance names

2005-07-26 Thread Graham Bloice
>>http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx >>has some scripts that appear to do what you need. > >>(Quite cool that we can now post a microsoft.com address for help with >>Python scripts ;) > >Really, really cool. It's a hug of a giant. > >But the sad thing: I quite

Re: [python-win32] Fetching network interface instance names

2005-07-26 Thread Harald Armin Massa
Mark, >http://www.microsoft.com/technet/scriptcenter/scripts/python/pyindex.mspx >has some scripts that appear to do what you need.>(Quite cool that we can now post a microsoft.com address for help with>Python scripts ;) Really, really cool. It's a hug of a giant. But the sad thing: I quite ra

Re: [python-win32] Fetching network interface instance names

2005-07-25 Thread Chris Miles
Thanks Mark. The "List Network Adapter Properties" script did the trick. And it didn't need ActiveState Python to work, thankfully. I would have preferred a solution that used win32pdh, and not win32com, just for consistency, but at least I get the results I'm after. Cheers, Chris -- Ch

Re: [python-win32] Fetching network interface instance names

2005-07-25 Thread Schollnick, Benjamin
k, Benjamin > Cc: Mark Hammond; Chris Miles; python-win32@python.org > Subject: Re: [python-win32] Fetching network interface instance names > > > WorksForMe both 2.3.2 and 2.4.1 (ActiveState versions) > (actually I only tried the .Caption, but since you said that > that

Re: [python-win32] Fetching network interface instance names

2005-07-25 Thread Simon Dahlbacka
ndor: ", objItem.Vendor > print "Version: ", objItem.Version > > They are obviously missing a step, because the colItems / > ExecQuerry is working, but > objItems does not have any of the Caption / Description, etc > variables.... > > So there mus

Re: [python-win32] Fetching network interface instance names

2005-07-25 Thread Schollnick, Benjamin
ously missing a step, because the colItems / ExecQuerry is working, but objItems does not have any of the Caption / Description, etc variables So there must be a missing step - Benjamin > > Mark. > > > -----Original Message- > > From: [EM

Re: [python-win32] Fetching network interface instance names

2005-07-24 Thread Mark Hammond
to:[EMAIL PROTECTED] Behalf Of Chris Miles > Sent: Monday, 25 July 2005 7:45 AM > To: python-win32@python.org > Subject: [python-win32] Fetching network interface instance names > > > Hi, I am querying win32pdh to fetch statistics from each network > interface on the machine. I am

[python-win32] Fetching network interface instance names

2005-07-24 Thread Chris Miles
Hi, I am querying win32pdh to fetch statistics from each network interface on the machine. I am able to fetch the stats I need, using the code below, from each network interface, provided I already know the network interface instance name (eg: intf below). My Q is: how can I programmaticall