Trying to set some basic validation in a batch file but keep getting a syntax error. Basically, 3 choices, if anything but 1, 2 or 3 is entered I want to start from beginning.
set input=
set /p input=Choice:
if %input%==1 goto 1
if %input%==2 goto 2
if %input%==3 goto 3
if not %input%==1
if not %input%==2
if not %input%==3
@echo Not a valid choice
goto Start
Thanks
You don’t need the three
if notstatements at all.