I have a check which always returns error level 0.  It should  not and from a 
command line it indeed does not.  Using the Checkerrorlevel that comes with 
salive it does indeed show 0.  



 Output .txt  contains 2


for /F "delims=" %%a in (output.txt) do (
   set "SHELL_EXIT_CODE=%%a"
)


exit  %SHELL_EXIT_CODE%


Command line results:
C:\Program Files (x86)\CountError\>CountError.bat


C:\Program Files (x86)\CountError\>echo %errorlevel%
2





Jason Passow Network Administrator 
http://www.mwsco.com 
[email protected] 
ph: (507) 494-5178 
fax: (507) 454-8104








Mississippi Welder Supply Co., Inc.  




Please consider the environment before printing this email.

____________________________________________________________________________________________________________________________________________________________________________________________________________________________

The information contained in this message is privileged and intended only for 
the recipients named. If the reader is not a representative of the intended 
recipient, any review, dissemination or copying of this message or the 
information it contains is prohibited. If you have received this message in 
error, please immediately notify the sender, and delete the original message 
and attachments.

To unsubscribe send a message with UNSUBSCRIBE in the subject line to 
[email protected]
If you use auto-responders (like out-of-the-office messages), make sure that 
they are not sent to the list nor to individual members. Doing so will cause 
you to be automatically removed from the list.

Reply via email to