找回密码
 加入
搜索
查看: 1736|回复: 1

[AU3基础] runas返回值为0

[复制链接]
发表于 2012-6-7 09:44:51 | 显示全部楼层 |阅读模式
无论在呢么运行,runas的返回值均为0,以下是我的代码
local $sUsername="administrator"
local $sPasswd="123456"
local $software="d:\study\try\ie.exe"
local $workgroup="d:\study\try"

$result = runas($sUsername,@computername,$sPassword,0,$software,$workgroup)
consolewrite($result)
 楼主| 发表于 2012-6-7 13:10:48 | 显示全部楼层
原因已找到,系统原因,xp系统是ghost系统,现在换了个非ghost系统,没问题了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-2 19:40 , Processed in 0.075352 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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