IF %ERRORLEVEL% EQU 0 Echo No error found
字串
if "%var% == "xxxx" (
:: do something
) ELSE (
:: do something
)
Reference :
If - Conditionaly perform command | SS64.com
More Powerful Batch Files- Branching with \"If\" statements
windows - Batch files, vista x64, if and parenthesis - Stack Overflow
沒有留言:
張貼留言