First post, by vitcunha
Sorry if this is the wrong place to post this. Please move at will.
I am running DOSBox 0.74 in OSX 10.8.5
K, do I have a folder called "A" and it has a messy path.
Inside A we have 4 files:
- A.exe
DOSBox.app
config.conf
A.command
I want to make a portable DOSBox able to run A.exe with a double click.
The thing is, i'll have lots of folders (e.g. "B"), and inside each of them I'll have 4 files.
The difference will be the config.conf: each with an autorun setup to properly run the respective .exe
(And the .exe, of course)
What I did was:
Since Dosbox is being opened in the same folder as what I want to run, I made a .command with the following line:
open $(dirname "$0")/DOSBox.app --args -conf $(dirname "$0")/config.conf
It's the same code suggested in http://www.dosbox.com/wiki/DOSBox_and_Mac_OS_X but I changed the absolute paths with this "dirname" thing.
I then opened Terminal, went to the A folder and hit
chmod +x A.command
I double clicked A.command and it works: I have no dropbox app elsewhere yet and it runs this one with its config file. If I move either of them, it stops, so they are rooted correctly.
What's happening:
I then add to the config.conf file in the autorun section the following:
mount C .
C:
A.exe
It hits
"Illegal Command A.exe"
If only I could run that I would have my program running in a double click.
So I tried to remove the A.exe from the autorun code and type
dir
And I noticed it reports as if the DOSBox app was in my
~/
folder (which is the "Home") (!!!)
I tried running the Dosbox app directly (which then doesn't load with the .conf I want). I
mount C .
again, hit "dir" and it shows correctly in the "A" folder content.
Any thoughts?
Thanks in advance
V