ACN_NET.au3报了个错误
我的代码:#Include <ACN_NET.au3>MsgBox(0,",",@IPAddress1)
$days = StringSplit(@IPAddress1, ".")
MsgBox(0,",",$days)
_WMI_SetNetworkAdapterInfo("","192.168.5."&$days, "255.255.255.0", "192.168.7.7","","","")报出的错误:D:\autoit3.3.7.2\UserInclude\ACN_NET.au3 (304) : ==> ??????(?????).:
$objNetAdapter.Rename($HostName)
$objNetAdapter.Rename($HostName)^ ERROR 这个怎么解决啊? 我的感觉是要判断下
#Include <ACN_NET.au3>
MsgBox(0,",",@IPAddress1)
$days = StringSplit(@IPAddress1, ".")
if $days < 4 then exit
MsgBox(0,",",$days)
_WMI_SetNetworkAdapterInfo("","192.168.5."&$days, "255.255.255.0", "192.168.7.7","","","")
不知道_WMI_SetNetworkAdapterInfo的报错是不是 192.168.5."&$days 这个参数引起的 第一个参数不能空吧 回复 3# yeqing880
我的感觉是要判断下
不知道_WMI_SetNetworkAdapterInfo的报错是不是 192.168.5."&$days 这个参数 ...
yeqing880 发表于 2011-10-25 00:28 http://www.autoitx.com/images/common/back.gif
你可以吗? 我测试过可以正常设置IP啊
_WMI_SetNetworkAdapterInfo(@ComputerName,"192.168.5."&$days, "255.255.255.0", "192.168.7.7","","","")
第一个参数是电脑名。。要填的
页:
[1]