找回密码
 加入
搜索
查看: 1707|回复: 3

[AU3基础] 请高手帮忙看看为什么runaswait 运行不成功,谢谢

[复制链接]
发表于 2011-12-25 17:07:23 | 显示全部楼层 |阅读模式
前面有定义手动输入IP $ipadd,掩码 $mask,网关 $gateway但是为什么运行就是不起作用呢?下面的字符串连接有问题吗?请高手帮忙看看,先谢过啦
RunAsWait("administrator",@computername,"passw0rd",0,@ComSpec & ' /c netsh interface ip set address "本地连接" static ' & $ipadd & ' ' & $mask & ' ' & $gateway & ' 1',"", @SW_HIDE)
发表于 2011-12-25 19:48:04 | 显示全部楼层
password
发表于 2011-12-25 20:03:46 | 显示全部楼层
netsh 那样设置貌似要加-c的参数
netsh /c interface ip set address "本地连接" static ' & $ipadd & ' ' & $mask & ' ' & $gateway & ' 1'
你或者用
netsh interface ip set address name="本地连接" source=static addr=%IPADDR% mask=255.255.255.0  这种方式改IP 和网关。
发表于 2011-12-26 10:56:57 | 显示全部楼层
好東西幫忙推一下

评分

参与人数 1金钱 -10 收起 理由
afan -10

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-8 10:02 , Processed in 0.091966 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表