VOGONS


First post, by sid_reynolds

User metadata
Rank Newbie
Rank
Newbie

How do you create the equivalent of batch file to run a Clipper EXE (eg test.exe) from a Mac?
Else it is a bit of bore for the Mac user to type:
mount c "c:\Program Files\Flow Chart"
test.exe
exit (to exit DosBox and return to Mac desktop)
every time they want to run the program.
(I assume an icon on their Mac desk-top is out of the question).
Regards, Sid

Reply 1 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Not sure if i understood you correctly, but have a look at the [autoexec]
section of dosbox.conf, there you can put things like that (including exit
to quit dosbox).

Reply 2 of 11, by sid_reynolds

User metadata
Rank Newbie
Rank
Newbie

Hi,
After I run DosBox, I can do I "dir" and see autoexec.bat and some .com files, but I can't see any dosbox.conf.
How do I access it?
Regards, Sid

Reply 3 of 11, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Maybe search your whole system for a file "dosbox.conf", if it doesn't
exist create one by typing "config -writeconf dosbox.conf" inside dosbox.
Then search again for that file (no idea where Macs put that file to).

Reply 4 of 11, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

If there is no dosbox.conf file, DOSBox will look for a .dosboxrc file in the users home directory.

If "~/.dosboxrc is missing, create it using the DOSBox command config -writeconf ~/.dosboxrc.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 5 of 11, by sid_reynolds

User metadata
Rank Newbie
Rank
Newbie

Hi MinMax,
I tried config -writeconf ~/.dosboxrc but it said
Can't open file ~/.dosboxxr

Hi wd
I tried config -writeconf dosbox.conf but nothing happened ie cursor just went to next line. I did a dir, and no file called dosbox.conf.

Hi both,
I was hoping it would open a DOS editor like edit.com, and allow me to manually type in batch file commands, save it to a batch file (or equiv) which I then run everytime from z:\
Any help appreciated.

Reply 6 of 11, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Did you do the config -writeconf ~/.dosboxrc on the Mac? Sounds like you did it on a PC. In that case it is config -writeconf C:\Where\ever\you\want\the\dosbox.conf

Once you are done writing these config files, I suggest you do a full search on all your disks and drives for all files named something with dosbox. Otherwise you risk editing one file, and DOSBox using a different one.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 7 of 11, by sid_reynolds

User metadata
Rank Newbie
Rank
Newbie

Sorry for delay in reply, family health problems...

Yes it was on my PC... I'm trying to test it on my PC as much as possible, to stop multiple trips to Mac users place.

So I ran Doxbox... then typed:
config -writeconf “c:\Program Files\Flow Chart\dosbox.conf”
This created a dosbox.conf, which was also duplicated in DoxBox folder (but I'll keep this latter one as an untouched back-up).
I then loaded the first dosbox.conf and added
mount c "c:\Program Files\Flow Chart"
test.exe
exit
under autoexec.bat section, and saved changes.
I exited Doxbox, and re-ran it, but nothing happened... ie no "mount" line, nor running the exe, nor "exit" out of Dosbox.

What did I do wrong? (bearing in mind, I want to be able to run DosBox, then have my EXE run automatically, then when exit my EXE to "exit" out of Dosbox back to Desktop).

Reply 8 of 11, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Check section 3 ("Usage") and section 9 ("The Config File") in the ReadMe-file, and you will see that DOSBox will prefer the copy in the DOSBox-installation directory (because the install directory will be the current directory when DOSBox.exe launches) over the one you saved in the Flow Chart directory.

My suggestion is that you change the current, working directory to "%ProgramFiles%\Flow Chart" before before launching DOSBox, - or - launch DOSBox with a -conf "%ProgramFiles%\Flow Chart\dosbox.conf".

If you do this, you can actually trim down your dosbox.conf file to just the things that is changed from the default config. Anything not in the specified config will be take from the config-file in the DOSBox installation directory.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 9 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

you are missing the
c:
after the mount command

Water flows down the stream
How to ask questions the smart way!

Reply 10 of 11, by sid_reynolds

User metadata
Rank Newbie
Rank
Newbie

Thanks!
I right-clicked on DosBox icon, then Properties, then changed Target from:
"C:\Program Files\DOSBox-0.65\DOSBOX.EXE" -conf "C:\Program Files\DOSBox-0.65\dosbox.conf"
to
"C:\Program Files\DOSBox-0.65\DOSBOX.EXE" -conf "C:\Program Files\Flow Chart\dosbox.conf"

I then loaded dosbox.conf and under "autoexec", I added:
mount c: "c:\Program Files\Flow Chart"
c:
test.exe
exit
and it worked!! All I have to do know is click on the Dosbox icon, and runs the EXE and then exits back to desktop.

.... Now I have to do the same for Mac's that I haven't used.
So what is different?
-Go to Mac, not PC
-Go to http://dosbox.sourceforge.net/download.php?main=1, and download "Mac OS X", not "Windows"
-Somehow copy my EXE to new DosBox folder
-Somehow load dosbox.conf, make above changes below "autoexec"
-Click on DosBox icon
Correct?

Reply 11 of 11, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

I hope someone will Mac experience will chime in.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32