@ECHO OFF ECHO Do you want to continue? Answer yes or no. CALL GETREPLY FOR %%f IN (yes no YES NO) DO IF %reply%==%%f GOTO %%f ECHO You entered "%reply%" -- that is not yes or no. GOTO end :yes ECHO You entered yes. GOTO end :no ECHO You entered no. :end