"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

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.



Print This Tip

Get E-Mail When New Tips are Online

Return to the DOS and Batch Files page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )