Writing a Batch file

Post » Sat Jul 09, 2011 4:41 am

I recently got around to installing Daggerfall on my laptop, using Dosbox. However, it's somewhat tedious having to mount the game to the drive every time I want to play it. I'm not very experienced in dosbox, but surely there's a way to write a batch file so that Daggerfall can be started using a single, simpler command?
User avatar
LADONA
 
Posts: 3290
Joined: Wed Aug 15, 2007 3:52 am

Post » Sat Jul 09, 2011 10:03 am

I like to add the mounting commands to the [autoexec] section of the DOSbox.conf file

mount c /DOS/ -freesize 1000
c:


And then put batch files in my DOS folder for each of my games.

df.bat
fall.exe z.cfg
Then I just start DOSbox, type df and hit enter. BOOM daggerfall time!

Making a batch file is easy: just make a txt file, type in the commands, and then rename it to whatever.BAT
User avatar
Frank Firefly
 
Posts: 3429
Joined: Sun Aug 19, 2007 9:34 am

Post » Sat Jul 09, 2011 10:23 am

I like to add the mounting commands to the [autoexec] section of the DOSbox.conf file

mount c /DOS/ -freesize 1000
c:


And then put batch files in my DOS folder for each of my games.

df.bat
fall.exe z.cfg
Then I just start DOSbox, type df and hit enter. BOOM daggerfall time!

Making a batch file is easy: just make a txt file, type in the commands, and then rename it to whatever.BAT

I tried a few different things to try to make this work, but other than directly mounting DF and the DFCD to the drive at startup, nothing will work. I don't want to mount everything at startup, as I use dosbox for a few other games. I used the step by step installation instruction given in Bethesda's download to install the game on Dosbox 0.74, is there anywhere where I can get step by step instruction for making a batch file to run it too?
User avatar
Javaun Thompson
 
Posts: 3397
Joined: Fri Sep 21, 2007 10:28 am

Post » Sat Jul 09, 2011 12:09 am

OK, tell you what. You post what commands you use to mount it all up and run Daggerfall (that work), and I'll tell you exactly what to put in the batch file.
User avatar
Brandon Bernardi
 
Posts: 3481
Joined: Tue Sep 25, 2007 9:06 am

Post » Sat Jul 09, 2011 12:52 am

mount c c:\dosgames -freesize 1000
mount d c:\dosgames\dfcd -t cdrom -label Daggerfall
c:
cd\dagger
dagger

Thanks in advance, I'm terrible with these things.
User avatar
Sarah Edmunds
 
Posts: 3461
Joined: Sat Jul 08, 2006 8:03 pm

Post » Sat Jul 09, 2011 1:41 am

OK, open up your dosbox.conf file and add this to the very end, in the [autoexec] section:
mount c c:\dosgames -freesize 1000c:

(This just makes it so that when you start DOSbox it automatically mounts your games folder for you)

Now make a blank text document, open it up, and paste the following into it:
mount d c:\dosgames\dfcd -t cdrom -label Daggerfallcd\daggerdagger


Then rename the file to DF.BAT and place it in c:\dosgames\

When you start DOSbox, it should automatically mount C and start you with a C:\ prompt.
Type DF and hit enter, which should start Daggerfall for you!
User avatar
Emily Shackleton
 
Posts: 3535
Joined: Sun Feb 11, 2007 12:36 am


Return to The Elder Scrolls Series Discussion