Utility commands for troubleshooting

After executing a utility command, a value is returned into the ERRORLEVEL environment variable indicating the success or failure of the execution. The ERRORLEVEL variable is a Windows environment variable that contains the return code of the last DOS command you executed.

To retrieve the value of the ERRORLEVEL variable, run the following DOS command.

ECHO % ERRORLEVEL %

Utility commands return the following valid values in the ERRORLEVEL variable:

Return Code
Description
0
This value indicates that the utility command was successful.
1
This value indicates that the utility command was not successful.

The ERRORLEVEL variable can also be used in batch files to retrieve the value of the return code.