First post, by ironman288
I am trying to run DOSBox from a flash drive so I can use it on multiple computers, and have managed to install DOSBox and all my games without a problem. However, the autoexec runs some dosbox commands to mount the drive before i can access my games and when switching between PC's the drive letter will change.
If i could use a .bat file to enter some commands into DOSBox once it is open I would use the current directory code, which i have found to be: "%CD%" (is this correct?) but I can't seem to have a .bat file enter text into the DOSBox prompt, nor can i run a .bat in DOSBox without mounting first, thus making it impossible to make a .bat to mount my directory for me.
It also seems that a true .bat file will simply run in the directory it is in, so a simple
mount c: %CD%\portableapps\dosbox
should do the trick if it's possible to use commands from files other than the normal autoexec file.
So is it possible to have DOSBox open to the drive it is installed on by default (which is NOT dangerous for me since it is a flash drive), or to make it somehow read what drive letter it is on dynamically, or am I doomed to have to manually mount each time i go to a computer other than my own?
So a quick recap: autoexec allows me to auto-mount to a static drive letter ("J" in my case) but I want to have it mount dynamically on each new machine (so that if the drive letter becomes "G" on a computer it will still mount the DOSBox folder).
Yes I know i only have to type two commands if i end up looking up the drive letter myself but i would still rather not :p