Jump to content

Help on Get Net Speed


Syed23
 Share

Recommended Posts

Hi Friends,

I want to determine the net speed through autoit. i have a WMI script which works perfect. but the same code did not work on Autoit. i know i have done some thing wrong on my script. can some one help me where i am doing wrong?

Here is the code:

Global $NdisLinkSpeed,$str
$str = @ComputerName
$objWMIService = ObjGet("winmgmts:\\" & $str & "\root\WMI")
$colItems = $objWMIService.InstancesOf _
("SELECT * FROM MSNdis_LinkSpeed",48)
For $objItem in $colItems
With $objItem
    $NdisLinkSpeed = $objItem.NdisLinkSpeed/10 & "kbps"
EndWith
 
Next
 
MsgBox(0,"",$NdisLinkSpeed)

for your reference i have the WMI code attached here.

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Link to comment
Share on other sites

Thanks a lot for your prompt response! this returns all the instance speed. is there a way to get only the connectivity speed? For example the current download speed is xxxkbps... like that ? is that possible?

Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...