blog.jj5.net (2003 to 2005)

if errorlevel 1 set ERR=%errorlevel% & goto :ERROR

Wed Feb 16 08:24:00 UTC+1100 2005

Categories:

Yay.

I figured out how to preserve the error level in a windows batch file before invoking the error handler with a single line.

Thanks for nothing, lousy internet!

Oh, and here's another favorite while 'debugging'..

if errorlevel 1 ( echo ERROR! & pause )


Copyright © 2003-2005 John Elliot