in my batch files i tend to put a "translation" of the exit codes.
Example: this is the translation of the exit codes for ROBOCOPY
:ERRORCHECK
IF %ERRORLEVEL% EQU 16 ECHO ***FATAL ERROR*** & GOTO :EOF
IF %ERRORLEVEL% EQU 15 ECHO OKCOPY + FAIL + MISMATCHES + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 14 ECHO FAIL + MISMATCHES + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 13 ECHO OKCOPY + FAIL + MISMATCHES & GOTO :EOF
IF %ERRORLEVEL% EQU 12 ECHO FAIL + MISMATCHES& GOTO :EOF
IF %ERRORLEVEL% EQU 11 ECHO OKCOPY + FAIL + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 10 ECHO FAIL + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 9 ECHO OKCOPY + FAIL & GOTO :EOF
IF %ERRORLEVEL% EQU 8 ECHO FAIL & GOTO :EOF
IF %ERRORLEVEL% EQU 7 ECHO OKCOPY + MISMATCHES + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 6 ECHO MISMATCHES + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 5 ECHO OKCOPY + MISMATCHES & GOTO :EOF
IF %ERRORLEVEL% EQU 4 ECHO MISMATCHES & GOTO :EOF
IF %ERRORLEVEL% EQU 3 ECHO OKCOPY + XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 2 ECHO XTRA & GOTO :EOF
IF %ERRORLEVEL% EQU 1 ECHO OKCOPY & GOTO :EOF
IF %ERRORLEVEL% EQU 0 ECHO No Change & GOTO :EOF
GOTO :EOF
i'm probably reading it wrong but i don't find a list of exit codes for gallery_dl.
Is it because they are mostly for your personal use and therefore you never bothered?
Or is it because i totally flew over where they are listed?
in my batch files i tend to put a "translation" of the exit codes.
Example: this is the translation of the exit codes for
ROBOCOPYi'm probably reading it wrong but i don't find a list of exit codes for
gallery_dl.Is it because they are mostly for your personal use and therefore you never bothered?
Or is it because i totally flew over where they are listed?