My batch file won't work! Answered
I was working on a puzzle batch file. Everything works except for the end, where it quits for no reason. Here's the code: @echo off
echo I will make three files.
echo Each of them will be a piece of the puzzle.
echo Are you ready?
echo %puzzle1% >> 1.txt
echo %puzzle2% >> 2.txt
echo %puzzle3% >> 3.txt
set /p answer=Answer:
if '%answer%'=='%puzzle1% %puzzle2% %puzzle3%' goto b
if not '%answer%'=='%puzzle1% %puzzle2% %puzzle3%' goto a
echo I knew you could do it.
FOR %%A IN (*.txt*) DO DEL %%A