Topic summary
Exit code
Extracted from the Wikipedia article Exit status.
DOS
In DOS terminology, an errorlevel is an integer exit code returned by an executable program or subroutine. Errorlevels typically range from 0 to 255. In DOS there are only 256 error codes available, but DR DOS 6.0 and higher support 16-bit error codes at least in CONFIG.SYS. With 4DOS and DR-DOS COMMAND.COM, exit codes (in batchjobs) can be set by EXIT n and (in CONFIG.SYS) through ERROR=n.