VOGONS


First post, by Northville Dave

User metadata
Rank Newbie
Rank
Newbie

Is there any way a user could add one or more batch files permanently to the to the "z" drive?

Seems to me that if this could be done, it would go a long way towards automating the drive mounting and other tasks required to get started in the game or other program we want to run.

Forgive me if this topic has already been covered - I did spend some time searching but didn't find it.

Reply 1 of 6, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

no, you can't add anything to z:

For that kind of stuff you use the autoexec part of the config. you can always add batch files to a folder that you always mount as y: and add y:\ to the path in the autoexec

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 6, by Northville Dave

User metadata
Rank Newbie
Rank
Newbie

Thanks, Dominus

That seems to allow me to do exactly what I wanted! Good thing I had already examined the "options" file or this Newbie wouldn't of had a clue as to what you were talking about.

I realyl neaded somethink like that sicne I kan't type muxh w/o typoz.

Dave

Reply 3 of 6, by FeedingDragon

User metadata
Rank Oldbie
Rank
Oldbie

It would be handy, though, if a sub-directory could be placed in the DOSBox install directory that would show up as part of Z. Yes, it's easy to do something like I did and just put the files on a mounted drive or sub-directory of one. For example, my DOSBox always mounts the C: drive (to C:\Games\DOSBox,) and always sets the path to include C:\DOS (on the mounted C drive.) That way, anything I want to always be available I can just throw into the C:\Games\DOSBox\DOS directory and there ya go.

However, if I'm running many different configs that mount C onto different locations, I then have to copy the DOS directory to all those different locations. If there was just a sub-directory in the main DOSBox directory names "Z" for example, and I could throw common utilities (d.com, list.com, pause.exe, etc....) into there, it would be a lot easier. Just a thought.

I have to admit, though, that I have no idea how hard/easy that would be.

Feeding Dragon

Reply 4 of 6, by collector

User metadata
Rank l33t
Rank
l33t

If you can't be bothered to copy any extra needed files into a game's folder, why not just mount another folder as another drive?

mount c PathToMyGame
mount d PathToMyExtras

Reply 5 of 6, by FeedingDragon

User metadata
Rank Oldbie
Rank
Oldbie
collector wrote:
If you can't be bothered to copy any extra needed files into a game's folder, why not just mount another folder as another drive […]
Show full quote

If you can't be bothered to copy any extra needed files into a game's folder, why not just mount another folder as another drive?

mount c PathToMyGame
mount d PathToMyExtras

It isn't so much as a bother, as the option would just be convenient. Have some utilities that you want to be available all the time. Throw them in a directory and then you don't have to worry about editing the autoexec section of every single config you create to add in the extra mount and change the path variable. I believe DOSBox's default path is "Z:". Every config I've created has added in the "PATH=Z:\;C:\DOS" line in the [AUTOEXEC] section of the config. If I had several different configs set up, then I would have to add in "MOUNT Y: C:\DOSBox\DOS" and "PATH=Z:\;Y:" into every config I create. Why not have a directory (%INSTALLPATH%\Z for example) whose contents are automatically appended to the virtual Z: drive that DOSBox mounts on startup? The only problem I really see with it are the jokers that would create files with the same name as the internal files (MOUNT.COM for example,) just to see if they can break something.

Feeding Dragon