Hello,i,m currently working on a batch file with a menu and i am having a few problems this is what i have done so far,
@ECHO OFF
:MENU
CLS
ECHO 1. Display Time
ECHO 2. Display Date
ECHO 3. Display Current Directory
ECHO Q to Quit
set INPUT=
set /p INPUT Please make a selection
if "%input%"==""goto MENU
if %input% == 1 goto TIME
if %input% == 2 goto DATE
if %input% == 3 goto DIR
if %input% == Q goto QUIT
:TIME
TIME
goto MENU
:DATE
DATE
goto MENU
:DIR
DIR
goto MENU
:QUIT
echo.
echo Goodbye
echo.
echo.
pause
exit
When i try to use the program it says "The syntax of the command is incorrect, goto was unexpected at this time"
I have tried the CHOICE command but it does not work as my version of MS-DOS (5.1) does not have that command implemented yet.
Can you see where i might have gone wrong with the code, or if i,m doing something incorrect.
Thankyou for any help