VOGONS

Common searches


First post, by Terrapin

User metadata
Rank Newbie
Rank
Newbie

Hey Vogonites,

I've been dabbling in conf files for a while now and have been using the 3D Realms Anthology .bat and .conf files to create my own automated DOSbox 'scripts?'

Anyways, I'm looking to build a few lists within the autoexec conf's. I know 'how' to build a list now (via copy and paste 🤣, with a few modifications), but I'm looking to build lists within lists.

Example:

[Game Name]
by [Developer Info]

1. Commander Keen 1
2. Commander Keen 2
3. Commander Keen 3
4. Commander Keen Mods
5. Exit

End Example.

When pressing 4, I would like to be taken to a separate menu that would allow me to choose different mods.

Here is the code/strings behind the menu itself.

Mount C ".."
C:
cls

echo.
echo [29;1m Commander Keen in: Invasion of the Vorticons
echo [30;1m by Apogee
echo.
echo [30;1m NOTE: To switch between windowed and full-screen press ALT+ENTER
echo.
echo [32;1m 0. Part 0 - Printed To Pluto
echo [32;1m 1. Part 1 - Marooned on Mars
echo [33;1m 2. Part 2 - The Earth Explodes
echo [34;1m 3. Part 3 - Keen Must Die!
echo [34;1m 4. Mods
echo [31;1m 5. Exit
echo [0m
choice /c012345 /s Choose your episode: /n
echo.

if errorlevel == 5 goto exit

if errorlevel == 4 goto e4
if errorlevel == 3 goto e3
if errorlevel == 2 goto e2
if errorlevel == 1 goto e1
if errorlevel == 0 goto e0

:e0
call KEEN0.bat
exit

:e1
KEEN1.exe
exit

:e2
KEEN2.exe
exit

:e3
KEEN3.exe
exit

:e4

exit

:exit
exit

Where ':e4' is, would I be able to copy and paste the list portion without the script getting confused with the other entries in the list, or would I need to add any other specific commands to let the system know that ':e4' is a separate, contained list??

Reply 2 of 3, by breiztiger

User metadata
Rank Newbie
Rank
Newbie

hi

if it can help i post two menu examples i have made for self service pc

Attachments

  • Filename
    MENU JEUX PC.zip
    File size
    2.2 KiB
    Downloads
    70 downloads
    File license
    Fair use/fair dealing exception

Reply 3 of 3, by Terrapin

User metadata
Rank Newbie
Rank
Newbie
breiztiger wrote:

hi

if it can help i post two menu examples i have made for self service pc

Wow! Those are excellent examples and look very useful! Thank you!

Thank you as well Jorpho. Judging by the examples you are right.
I was going to try a few things, but without knowing how the actual list structure looks, (it's keys and call signs, or whatever they're called) I would have been testing variables for days 🤣.