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

Windows 8
Make Two More Time Zones a Mouse Hover Away
Sites to Browse - Humor - Pranks
When Online Reviews get Ridiculous
Windows 8
Make it Easier to Differentiate Explorer Windows by Showing Full Paths
Google Chrome
Easily Share Content on Facebook, Pinterest, Twitter, More

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.