Is it possible to boot a disk image in DOSbox from the host OS terminal, or by double-clicking the disk image?
I'd like to just casually boot straight into a game sometimes, or at least a mounted floppy. I don't want to type commands is DOSbox for casual situations like this.
I'm focussing on games that can run straight from the floppy drive. Thanks!
Edit: I tried variations of this command in the macOS terminal:
/Applications/DOSBox\ Staging.app/Contents/MacOS/dosbox -c "imgmount a '/Users/io/Downloads/Prince.img' -t floppy" -c "a:" -c "dir /p"
The idea is that it would open DOSbox in the A: location, run dir /p. I should see prince.exe listed. Unfortunately what actually happens is I'm given a listing of Z: instead. When I try to switch to A:, I'm told that it needs to be mounted first. But I thought my terminal command takes care of that.
over_clox
in reply to FarraigePlaisteaċ • • •I'm not home right now, but I once wrote a batch script to help do exactly that as a context menu option for Windows systems, to boot an IMA/IMG image directly into DOSBox.
Once I get home, I'll see if I can locate those old scripts and try to share. Granted the difference between Windows and Mac, but the basic command lines for DOSBox should effective work the same.
No promises, but if I find those script files (holy crap I have way too many files!), I'll see about sharing them later, translation to the Mac environment will be up to you though.
I think my approach was to copy the default dosbox.conf file to a temporary file, then append the temporary file with what image to boot from under [AUTOEXEC], and just consider the temp dosbox.conf as exactly that, temporary, to be rewritten every time I used my custom DOSBox Boot Floppy context menu thing.
I dunno, I'll see later, when/if I get a good chance soon.
FarraigePlaisteaċ
in reply to over_clox • • •No pressure but I appreciate the effort. I'm sure I'd be able to make something for macOS based on it.
Funnily enough, just a few comments back in my profile I've offered to find a config file for someone else and I also have absolutely no idea where to find it yet!
over_clox likes this.
over_clox
in reply to FarraigePlaisteaċ • • •FarraigePlaisteaċ
in reply to over_clox • • •over_clox
in reply to FarraigePlaisteaċ • • •I wrote that back in my Windows XP days, so keep that in mind when looking at my BootImg.bat script. I had it writing the template and temporary config scripts directly to the Program Files folder like a dummy, I should have used the %TEMP% folder instead.
And of course you'll still have to translate, adapt and overcome to get the same sort of thing working on a Mac.
Good luck fellow stranger, let me know how it goes!
Edit: Don't mind the registry file too much, it's not only proprietary to Windows, it also depends on WinImage being installed and also the default program to open IMA/IMG files. But the command itself was solid.
DosDude
in reply to FarraigePlaisteaċ • • •On Mac you need to run it with open parameter to add custom arguments
dosbox.com/wiki/DOSBox_and_Mac…
DOSBox and Mac OS X - DOSBoxWiki
www.dosbox.comFarraigePlaisteaċ
in reply to DosDude • • •over_clox
in reply to FarraigePlaisteaċ • • •For totally generic games that boot straight off the floppy disk, the default config tends to work just fine. Like I said in my other comment though, I used a temporary config file, based on the default config, but I would append the boot image filename/path to the [AUTOEXEC] section at the end of the temporary dosbox.conf file.
It might be easier for you for now to make individual config files for each game, but it should be possible like I said to make a generic script to boot basically any PC floppy disk image directly.
I'll see later whatever I have around.