Duke Nukem game 1 (1991) and 2 (1993) registered version Batch (.bat) menu using DosBox.
CHOICE is not standard in Windows XP although it as put back in Vista. You can either download CHOICE or use a non-choice (SET) BATCH menu which will be posted immediately after this one.
This creates two temporary files stdout.txt and stderr.txt in the directory where the .bat menu is located. They are removed by this .bat file when closing.
of course this depends on standard installations. If your installation paths are different, you will need to change the menu appropriately.
copy and paste the following and save it as a batch (.bat) file. Edit it as needed for your own use.
========================================================================
@echo off
:menu
title Duke Nukem
color 17
cls
echo.
echo.
echo.
echo.
echo ============================================
echo Duke Nukem Main Menu
echo ============================================
echo.
echo 1. Duke Nukem 1, Episode 1
echo 2. Duke Nukem 1, Episode 2
echo 3. Duke Nukem 1, Episode 3
echo.
echo 4. Duke Nukem 2 (Episodes 1-4)
echo.
echo 5. Exit
echo.
echo.
echo.
CHOICE /C 12345 /M "Your Choice: "
if errorlevel 5 goto exit
if errorlevel 4 goto nukem2
if errorlevel 3 goto dn3
if errorlevel 2 goto dn2
if errorlevel 1 goto dn1
:dn1
cls
"C:\Program Files\DOSBox-0.73\dosbox.exe" -conf dosbox.conf -noconsole -c "mount k: c:\duke1" -c k: -c dn1
goto :exit
:dn2
cls
"C:\Program Files\DOSBox-0.73\dosbox.exe" -conf dosbox.conf -noconsole -c "mount k: c:\duke1" -c k: -c dn2
goto :exit
:dn3
cls
"C:\Program Files\DOSBox-0.73\dosbox.exe" -conf dosbox.conf -noconsole -c "mount k: c:\duke1" -c k: -c dn3
goto :exit
:nukem2
cls
"C:\Program Files\DOSBox-0.73\dosbox.exe" -conf dosbox.conf -noconsole -c "mount k: c:\duke2" -c k: -c nukem2
goto :exit
:exit
del stderr.txt
del stdout.txt
exit
.
No comments:
Post a Comment