First post, by JPV511
How do I create batch files to instantly load games? So far, I know only to edit the dosbox config file, but it's only for a single game. How do I create batch files for other games?
How do I create batch files to instantly load games? So far, I know only to edit the dosbox config file, but it's only for a single game. How do I create batch files for other games?
Make a text file with all the commands on different lines and save it as gamename.bat.
For example to run thegame, thegame.bat
cd thegame
Thegame.exe
What do you want the batch file to do? If it just to launch a game the autoexec section of the DOSBox.conf file should be enough.
Let's say your autoexec reads
MOUNT C "C:\DOS" -t dir -freesize 200
and thegame is located in C:\DOS.
If thegame requires a CD which you have imaged, you can use the batch to mount it.
Z:MOUNT -u DIMGMOUNT D "C:\DOS\thegame\thegame.iso" -t isoC:
If thegame defaults to 3000 cycles but you want it to run faster you can add something like this to the batch file
CONFIG -set "cpu cycles=20000"
If thegame is part of a series you could make a menu.
@ECHO OFF:STARTCLSECHO 1) thegame 1ECHO 2) thegame 2: the only victory is to deny it combatECHO 3) thegame 3: revenge of the sore losersECHO 4) thegame 4: the last cliffhangerECHO.CHOICE /C:12345ECHO.IF ERRORLEVEL 5 GOTO ENDIF ERRORLEVEL 4 GOTO PROG4IF ERRORLEVEL 3 GOTO PROG3IF ERRORLEVEL 2 GOTO PROG2IF ERRORLEVEL 1 GOTO PROG1:PROG1ECHO.ECHO Loading Program 1CD PROG1PROG1.EXECD ..pauseGOTO START:PROG2ECHO.ECHO Loading Program 2CD PROG2PROG2.EXECD ..pauseGOTO START:PROG3ECHO.ECHO Loading Program 3CD PROG3PROG3.EXECD ..pauseGOTO START:PROG4ECHO.ECHO Loading Program 4CD PROG4PROG4.EXECD ..pauseGOTO START:ENDECHO.ECHO Exiting Menupause:EXIT
Thanks for the feedback. I just want to be able to launch games immediately by just typing their respective .exe file, basically eliminating the extra step of changing directories.
Make a batchfile with the gamename or exe name and do the cd command in there.
You *could* enter all directories in the Path setting but that is limited to something and thus will not work for everything and many games would be screwed up anyways since they expect files in their directory...