This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

DOS and Batch Files - Display ErrorLevel on the screen

SUMMARY: Debug batch files by displaying the error level returned by DOS commands.

Loyal MalekTips reader, going by the handle "Fast Track", suggested this tip.

Debugging batch files and need to see the error level results of every DOS command echoed to the screen? Try this command:

COMMAND /Z

This echoes the command processor with 'errorlevel' echoed to the screen.


 

 

Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to DOS and Batch Files - Display ErrorLevel on the screen

Standard disclaimer applies - read http://malektips.com/disclaim.html