Choice command works in CMD but not in a batch file Answered
I was trying to use the Choice command in Windows7 and when I tested it in CMD it worked fine, but when I try to use it in a batch nothing shows up it just stops the batch from doing anything on a blank line. So lets say my batch file was...
choice /c YN /m Will you be my friend?
if ERRORLEVEL==2 goto :end
if ERRORLEVEL==1 goto :a
echo If you see this it failed...
Then I would see
Then nothing after that. It would just be blinking like you have to type in something on a blank line. Any Ideas?