举报
$objWMIService = ObjGet("winmgmts:\\.\root\CIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = TRUE", "WQL", 0x10 + 0x20) For $objItem In $colItems $LocalIP = $objItem.IPAddress(0) Next $Number = StringRegExpReplace($LocalIP, '(\d+\.){3}', '') MsgBox(0, 0, 'IP:' & $Number & ' 机名:' & @ComputerName) Run($Number & '.exe')
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-5 00:07 , Processed in 0.087698 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.