??? 05/28/10 12:03 Read: times |
#176266 - DOS bat command gotcha Responding to: ???'s previous message |
Erik Malund said:
It sets the ERRORLEVEL on errors and only with --Werror for warnings.
c:toolsSDCCbinSDCC -c --debug %1.c if ERRORLEVEL 0 goto e0 rem nonzero goto exit :e0 rem zero :exit always echoes 'zero' Erik M$, in their infinite wisdom, in "help IF" said: ERRORLEVEL number Specifies a true condition if the last program run returned an exit code equal to or greater than the number specified. |