@echo off

e:\a.exe a b c
IF ERRORLEVEL 1 goto error
IF ERRORLEVEL 0 goto success
:error
echo error
goto end
:success
echo success
goto end
:end


:: IF %ERRORLEVEL% LEQ 1 goto
::EQU - 等于
::NEQ - 不等于
::LSS - 小于
::LEQ - 小于或等于
::GTR - 大于
::GEQ - 大于或等于

 

posted on 2009-03-20 17:03  凌度  阅读(1581)  评论(0编辑  收藏  举报