Syed23 Posted October 26, 2011 Posted October 26, 2011 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]
playlet Posted October 26, 2011 Posted October 26, 2011 (edited) --- Edited August 18, 2016 by playlet
Syed23 Posted October 26, 2011 Author Posted October 26, 2011 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]
playlet Posted October 26, 2011 Posted October 26, 2011 (edited) --- Edited August 18, 2016 by playlet
Syed23 Posted October 26, 2011 Author Posted October 26, 2011 Perfect! This is the one! Thanks a lot! Thank you,Regards,[font="Garamond"][size="4"]K.Syed Ibrahim.[/size][/font]
playlet Posted October 26, 2011 Posted October 26, 2011 (edited) --- Edited August 18, 2016 by playlet
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now