"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.

Return to the DOS and Batch Files page.

Print this tip


Get the Newsletter

blog comments powered by Disqus

Thanks For Sharing!



Newest Tips:

Buying a Digital Camera
[MODIFIED] Hidden Costs with Higher Megapixel Cameras
Windows 8
Resize Start Screen Tiles
Internet Explorer 11
Change the Default Search Provider to Google, Yahoo!, or Something Else
IrfanView
[MODIFIED] Disable Most Recently Used Files and Folders for Privacy

Follow Us!

About MalekTips and the Author

The MalekTips website was created in 1998 by Andrew Malek of Envision Programming. The page's goal is to freely disperse computer-related tips, hints, and informative articles. Tips are organized to be easy to find, and are presented clearly, in easy-to-understand language. MalekTips also provides information and links to public-domain, open source, freeware, shareware, and commercial software available for download.