Sign in to follow this  
Followers 0
Syed23

Help on Get Net Speed

6 posts in this topic

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]

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

---

Edited by playlet

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

---

Edited by playlet

Share this post


Link to post
Share on other sites

Perfect! This is the one! Thanks a lot!


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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

---

Edited by playlet

Share this post


Link to post
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
Sign in to follow this  
Followers 0