I would like to use a variable to set choices for the choice command but every time i use this code in a batch file, this is what it outputs ERROR: Invalid choice. The valid choice characters are: a-z, A-Z, 0-9 and ASCII values of 128 to 254.
set 1=1
set 2=2
set 3=3
choice /c %1%%2%%3% /n
if %errorlevel%==1 goto 1
if %errorlevel%==2 goto 2
if %errorlevel%==3 goto 3
What am i doing wrong here? Help would be appreciated, Thanks