Batch ERRORLEVEL not working properly
<p>I've been using batch for a while now and I just recently ran into a problem I never encountered before involving ERRORLEVELS.</p>

<p>Here is a short program I made to show off the error.</p>

<pre><code>@echo off
title Choices
CMD /C EXIT 0
echo [1] Choice 1
echo [2] Choice 2
echo [3] Choice 3
choice /c 123 /n 
IF ERRORLEVEL 1 GOTO ONE
IF ERRORLEVEL 2 GOTO TWO
IF ERRORLEVEL 3 GOTO THREE
echo Nice you broke it
pause
exit
:ONE
echo CONGRATS YOU CHOSE 1
pause
exit
:TWO
echo NICE YOU CHOSE 2
pause
exit
:THREE
echo OOH YOU CHOSE 3
pause
exit
</code></pre>

<p>Its very simple and all you do is press a number and it says what number you pressed.  The problem is no matter what i press it always outputs what would happen when I press 1.  I used to use %errorlevel% and that worked fine but then it stopped working so I switched to the new method (IF ERRORLEVEL WHATEVER) and now it wont work either.</p>