To test my I created a one-line batch file called Test.bat It contains this...
EXIT /b 3
Now, if I open a Command Window and run it...
C:\Temp>Test.bat & echo %ERRORLEVEL%
I see a "0".
But if I run it again... I get 3! And as many times as I run it, I always get 3.zzz:
Please forgive if this is a dumb beginner question. Can someone please explain... why do I get "0" the first time??
Thanks, Rob-