VOGONS

Common searches


DosBox en Bat??

Topic actions

Reply 21 of 21, by chaggydawg

User metadata
Rank Newbie
Rank
Newbie

In case anyone arrives here as I did recently looking for answers. I made this menu batch from reading these posts, if someone wants like a tldr example skeleton to work from:

echo off
CLS
:MENU
ECHO.
ECHO.
ECHO 1 - Episode 1
ECHO 2 - Episode 2
ECHO 3 - Episode 3
ECHO 4 - Episode 4
ECHO 5 - EXIT
ECHO.
choice /n /c:12345 "Press 1, 2, 3, 4, or 5:"
if ERRORLEVEL 21 goto end
if ERRORLEVEL 20 goto 20
if ERRORLEVEL 19 goto 19
if ERRORLEVEL 18 goto 18
if ERRORLEVEL 17 goto 17
if ERRORLEVEL 16 goto 16
if ERRORLEVEL 15 goto 15
if ERRORLEVEL 14 goto 14
if ERRORLEVEL 13 goto 13
if ERRORLEVEL 12 goto 12
if ERRORLEVEL 11 goto 11
if ERRORLEVEL 10 goto 10
if ERRORLEVEL 9 goto 9
if ERRORLEVEL 8 goto 8
if ERRORLEVEL 7 goto 7
if ERRORLEVEL 6 goto 6
if ERRORLEVEL 5 goto 5
if ERRORLEVEL 4 goto 4
if ERRORLEVEL 3 goto 3
if ERRORLEVEL 2 goto 2

:1
PTOMB1.EXE
goto end
:2
PTOMB2.EXE
goto end
:3
PTOMB3.EXE
goto end
:4
PTOMB4.EXE
goto end
:5
:6
:7
:8
:9
:10
:11
:12
:13
:14
:15
:16
:17
:18
:19
Show last 2 lines
:20
:end