Using a couple of servers at work running Windows Server 2008 and noticed that my batch scripts are no longer failing gracefully.
Put simply, any statement checking ERRORLEVEL seems to pass, no matter what exit code you give it. For example, in a fresh command window:
if ERRORLEVEL 1 echo hello
shouldn't print anything, as the previous exit must have been 0. Well, this works fine on my Windows 7 desktop, but not on these servers. This basically breaks all of my scripts.
Is there any patch update or other change that could have been introduced to the servers to make this happen? I'm not the only one with admin rights to these servers, but need a bit more information before pointing the accusatory finger!