提醒:Windows scripting - figuring out return / exit codes 2011年04月14日

订阅:martin
演示:以MSN订阅提醒为例 订阅到哪吒,有更新提醒我
哪吒机器人提醒:
提醒:geek + red sox + cooking = peter ryan » geek
【标题】Windows scripting - figuring out return / exit codes
【摘要】I just spent at least 10 minutes trying to determine the exit code for a command just executed from the command prompt. This seems like an overly simple thing to do but one that is not very well documented. The answer is to use the errorlevel environment variable.runMyCommand.exeAfter completion…echo %errorlevel%displays the actual code returned by the process.Interesting doing a SET does not display this environment variable. ... (04-14 22:19)
收藏 |  评论 |  推荐给好友  | 
本文共有 0 次分享
评论
共有 - 条评论


我要反馈