作者GodIsland (搞不定吗用C4就对了)
看板EzHotKey
标题[-AI-] 取得网路卡连线速度
时间Wed Aug 30 09:31:49 2017
https://www.autoitscript.com/forum/topic/93409-network-link-speed/
$strServer = "."
$objWMI = ObjGet("winmgmts://" & $strServer & "/root\WMI")
$objInstances = $objWMI.InstancesOf("MSNdis_LinkSpeed",48)
For $objInstance in $objInstances
With $objInstance
;ConsoleWrite( .Active & @CRLF)
ConsoleWrite( .InstanceName & @CRLF)
ConsoleWrite( .NdisLinkSpeed & @CRLF)
EndWith
Next
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 60.250.204.229
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/EzHotKey/M.1504056713.A.1E5.html
1F:推 jonce007: 赞! 不知道AHK有没有类似功能。 12/09 12:12