I am using errorlevel in a batch file to see if the
hotfixes install correctly:
if errorlevel 1 goto :label

On some of the systems it works correctly and others it
does not. My question is this, does anyone know what error
levels the hotfixes output and what they equal or how to
see what they are outputting? I tried 1>filename.txt
2>error.txt and that does not work.

TIA!

RE: errorlevel by anonymous

anonymous
Mon Oct 20 22:21:05 CDT 2003

You should check for errorlevel starting from the biggest values first
if errorlevel 2 ...
if errorlevel 1 ...

The construction "if errorlevel x" means if the error level returned is equal or greater to x.
Normally the program will exit with error level 0, if anything went wrong the error level would be 1 or greater (depends on what programmer assigns as an exit/return code).