Hey there. This is my first post on these forums and I hope I can get hope with my issue. Lets get to business. At the start of the program when you want to either select instructions or questions, it says "goto was not expected at this time." I'm pretty sure I did everything correctly according to the MS DOS commands. Any help please? I have spaced out the parts to help you read it. Here it is:
@echo off
color e
:MENU
cls
echo Welcome to the Quiz. This is a basic test of knowledge.
echo To begin, type Q then press enter.
echo It is recommended that you read the instructions.
echo For instructions, type I then press enter.
set /p=Command?
if %input%==Q goto Q1
if %input%==q goto Q1
if %input%==I goto INST
if %input%==i goto INST
:INST
cls
echo Welcome to the instructions of the Quiz.
echo During each question, there will be choices that are letter form.
echo Do not type anything besides the letter of your choice or an error will occur.
echo When you type your letter, it is not case sensitive, so you can either type it upper case or lower case.
echo If you would like stop playing anytime throught the game, just click the X at the top right corner of the window.
echo Good luck! Type M and press enter to go back to the menu.
if %input%==M goto MENU
if %input%==m goto MENU
:Q1
cls
echo What is 5 plus 5?
echo A= 55
echo B= 10
echo C= 3.141592654
set /p input=Answer?
if %input%==B goto WIN
if %input%==A goto LOSE
if %input%==C goto LOSE
if %input%==a goto LOSE
if %input%==c goto LOSE
if %input%==b goto WIN
:WIN
cls
echo Good job, you have proven your logicalness!
pause
exit
:LOSE
echo Sorry, looks like you failed!
echo To try the quiz again, type R, then hit enter.
pause
set /p input=Command?
if %input%==R goto Q1
if %input%==r goto Q1