- Jun
- 794
- 7
The Help says "ON ERRORLEVEL n will execute command when the internal ERRORLEVEL variable is greater than or equal to the integer specified by n." When I try it, it only executes when it is equal. I need to do "on errorlevel ge n" to have it execute when greater than or equal.
Foo.btm
on errorlevel 1 echo oops
call Foo2
echo %errorlevel
Foo2.btm
quit 2
TCC 12.01.44 Windows Vista [Version 6.0.6002]
Foo.btm
on errorlevel 1 echo oops
call Foo2
echo %errorlevel
Foo2.btm
quit 2
TCC 12.01.44 Windows Vista [Version 6.0.6002]