Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
duh

dosbox batch reference

Recommended Posts

Does anyone know where I can find it? All I know is that it follows the MS-DOS 6.22 batch reference, and Google is not helping me today.

Being more specific: I want to reduce the amount of goto usage in my scripts inside DOSBox (see below).

:fdtnte
cd tnt
goto play

:fdtpe
cd plutonia
goto play

:play
cls
dm
cd ..
goto start

Share this post


Link to post

Thanks, it doesn't seem to have an operator like "|", to execute multiple commands in one line. Oh well. I will share as it is, then.

This is just a menu, driven by numbers. It will always execute DM.EXE as a secondary launcher and list all the compatible wad files (it won't list all of them because of the lines limit, so yeah, hacky). It also has two modes, which can be easily alternated: host mode, and client mode (it will ask the ip you want to connect DOSBox to, and show it above).

It depends on the following programs:
ftp://ftp.cs.cuhk.hk/pub/simtelnet/msdos/batchutl/string25.zip
http://youfailit.net/pub/idgames/utils/misc/novert.zip

[autoexec]
mount C "./root"
c:
novert
goto start

:start
ipxnet disconnect
ipxnet startserver
cls
@ECHO   HOST MODE
@ECHO on
@ECHO off
@ECHO   1 - The Ultimate Doom
@ECHO   2 - Doom II: Hell on Earth
@ECHO   3 - Master Levels for Doom II
@ECHO   4 - Final Doom: TNT Evilution
@ECHO   5 - Final Doom: The Plutonia Experiment 
@ECHO on
@ECHO off
@ECHO   6 - Connect to host
@ECHO   7 - Exit
@ECHO on
@ECHO off
@choice /c1234567 /s Choose an option: /n 
if errorlevel 7 goto exit
if errorlevel 6 goto connect
if errorlevel 5 goto fdtpe
if errorlevel 4 goto fdtnte
if errorlevel 3 goto mlfd2
if errorlevel 2 goto d2hoe
if errorlevel 1 goto tud

:connect
cls
strings ip= ask Enter host's IP address:
ipxnet stopserver
ipxnet connect "%ip%"
cls
@ECHO   CONNECTED TO: %ip%
@ECHO on
@ECHO off
@ECHO   1 - The Ultimate Doom
@ECHO   2 - Doom II: Hell on Earth
@ECHO   3 - Master Levels for Doom II
@ECHO   4 - Final Doom: TNT Evilution
@ECHO   5 - Final Doom: The Plutonia Experiment
@ECHO on
@ECHO off
@ECHO   6 - Host game
@ECHO   7 - Exit
@ECHO on 
@ECHO off
@choice /c1234567 /s Choose an option: /n 
if errorlevel 7 goto exit
if errorlevel 6 goto start
if errorlevel 5 goto fdtpe
if errorlevel 4 goto fdtnte
if errorlevel 3 goto mlfd2
if errorlevel 2 goto d2hoe
if errorlevel 1 goto tud

:tud
cd doom
goto play

:d2hoe
cd doom2
goto play

:mlfd2
cd master
DMLOAD DOOM2
IF EXIST DTEMP.BAT GOTO RUNDM
cd ..
goto start

:RUNDM
DTEMP.BAT

:fdtnte
cd tnt
goto play

:fdtpe
cd plutonia
goto play

:play
cls
dir /b *.wad
dm
cd ..
goto start

:exit
exit
The "filesystem" this script operates upon is:
+DOSBox (or whatever you want it to be)
  +root (where all the games are supposed to be in)
    +PLUTONIA
    +TNT
    +MASTER
    +DOOM2
    +DOOM

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×