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

关于runwait cmd的返回值问题。

  [复制链接]
发表于 2008-10-22 07:20:15 | 显示全部楼层 |阅读模式
RunWait(@ComSpec & " /c " & "commandName")

Return Value
Success: Returns the exit code of the program that was run.
Failure: Returns 0 and sets @error to non-zero.

如何取得命令执行后的errorlevel?

执行net use,如果net use过程中有错误发生的话他的errorlevel就不会为0,但是RunWait还是返回0.
发表于 2008-10-23 08:09:13 | 显示全部楼层
你是不是想执行共享中的程序呀?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-6-16 22:15 , Processed in 0.081155 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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