_LanID() Func _LanID() $strComputer = "." $objWMIService = ObjGet("winmgmts:\" & $strComputer & "\root\cimv2") ;得到當前活動網卡ID $colItems = $objWMIService.ExecQuery("Select * from Win32_TSNetworkAdapterListSetting") For $Item in $colItems $AdapterID = $Item.NetworkAdapterID Next MsgBox(0,"",$AdapterID) EndFunc
举报
找到一段活動網卡ID的獲取方式,但小弟怎麼run都沒辦法正常執行,會出現下面圖示的訊息,自己對wmi又很不熟 ... jericho0711 发表于 2012-9-6 09:59
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-27 10:19 , Processed in 0.067716 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.