hey,
I'm trying to make a sort of gane launcher with batch. Basically a few choice's and if's but after the first choice the if's seem to do nothing as no matter my input it always opens the first game of the list.
And i've tried using set /p but the same problem occured
(And, yes, I probably made same embarrassing mistakes but am not programer, first time coding)
Here my code so far:
@echo off
mode con: cols=1024
:START
Echo Press 1 for GBA or 2 for SNES
choice/c 12 /n
if %errorlevel%==1 (Echo Choose game
Echo 1 Castlevania - Aria of Sorrow
Echo 2 Keitan Denjuu Telefang
Echo 3
Echo 4
Echo 5
Echo 6
Echo 7
Echo 8
Echo 9
Echo 0 Return
choice /c 1234567890 /n
if "%errorlevel%"=="1" goto 1
if "%errorlevel%"=="0" goto START
:1
"C:\Emuladores\VisualBoyAdvance\VisualBoyAdvance.exe" "C:\Emuladores\VisualBoyAdvance\ROMs\Keitai Denjuu Telefang - Speed Version (Japan).gbc"
)
if %errorlevel%==2 (Echo Choose game
Echo 1 Blackthorne
choice /c 123456789 /n
if %errorlevel%==2 "C:\Emuladores\zsnesw151\zsnesw.exe" "C:\Emuladores\zsnesw151\ROMs\Blackthorne (USA).sfc"
exit)