Page 2 of 2 <12
Topic Options
#29821 - 2002-09-27 10:01 PM Re: Checking modem connection speed remotly
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
That should work for whatever you have installed that uses a TCP/IP stack, just replace the name with the name of the adapter you are looking for.

Example:

Replace "WAN [PPP_SLIP] Interface" with "NOC Extranet Access Adapter"

Top
#29822 - 2002-09-30 03:33 PM Re: Checking modem connection speed remotly
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
you could do something like this...

code:
$adapter=split(WMIQuery("Name","Win32_PerfRawData_Tcpip_NetworkInterface"),"|")
$speed =split(WMIQuery("CurrentBandwidth","Win32_PerfRawData_Tcpip_NetworkInterface"),"|")

for $loop=0 to ubound($adapter)
? $adapter[$loop]" "val($speed[$loop])/1000000
next

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1080 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.041 seconds in which 0.026 seconds were spent on a total of 11 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org