Updated: 09/15/2017 by Computer Hope

ErrorlevelCommand used in a batch file and the level generated if a program properly executed. Most programs generate an errorlevel of 0 if the program or command executed properly and error level 1 and above indicates that the program did not execute properly.

  • Examples of how to use an errorlevel in a batch file can be found on our batch file overview.

Error, Programming terms