I'm looking to loop to some function calls as well as check the error level after returning from the function call.
Right now I have this (archaic - I know - but that's why I'm here
![Smile :)](./images/smilies/icon_smile.gif)
call :funcconfig
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :funclog
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :func1
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :funclog
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :func2
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :funclog
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :func3
@ IF %ERRORLEVEL% GTR 0 GOTO :EXIT
@ call :funclog
@GOTO :EOF
If someone has a better way to check the error level after running a function please let me know.
Also, if someone can suggest ideas on how to output a log file of the error code on the local machine and a log server that would be great!
Thanks,
CH