I have the following type of code that works most of the time...
set /p input=Do you like apples (Y/N)?
if %input%==Y goto YAY
if %input%==N goto BOO
echo I did not recognize %input% as a valid response.
echo YAY! Apples are great.
echo BOO! Apples are great.
If I type Y or N at the prompt, it works fine. If i type any other string of letters or numbers, it works fine. The problem is when I type something that has a space in it, such as 'HECK YEAH', it seems to error and the batchfile closes.
message edited by uniform129