2009年11月18日 星期三

查看windows程式回傳值

windows在命列下用 echo %ERRORLEVEL%
在linux bash shell下用 echo $?

查看上一個指命的回傳值,通常回傳0表示成功