Set ERRORLEVEL to something when an error occurs


I use a batch file to call XmlPreprocess, and when an error occurs, there are certain things I would like for it to do, but it seems that XmlPreprocess always returns with ERRORCODE set to 0. If an error occurs during execution, please set ERRORLEVEL appropriately so that it can be handled gracefully.
Closed Aug 9, 2012 at 4:54 PM by lorenh
No action required


AMcMillan wrote Jan 6, 2011 at 7:09 PM

BAH...Nevermind. It has been a while since I have done batch writing...

if ERRORLEVEL 0 was always true
if (%ERRORLEVEL%) == (0) is only true when XmlPreprocess is successful

wrote Aug 9, 2012 at 4:54 PM

wrote Feb 14, 2013 at 6:04 PM

wrote May 16, 2013 at 9:03 AM