VOGONS


First post, by Morning Song

User metadata
Rank Newbie
Rank
Newbie

Hi... I'm trying to find out if it's possible to pass parameters to a DOS program through DOSBOX. Wine can handle this by use of a double dash, for instance:

$ wine ./firefox.exe -- "http://www.google.com"

would open up google in Firefox
and i was wondering if there was any way to do this in Dosbox. I've tried a couple methods:

$ dosbox ./QBASIC.EXE -- /EDITOR
$ dobox ./QBASIC.EXE /EDITOR

$ dosbox "./QBASIC.EXE /EDITOR"

$ dosbox -c "QBASIC.EXE /EDITOR" .

The first two silently discard the /editor parameter, the third doesn't execute qbasic at all, and the fourth tries to run Qbasic before DOSBOX mounts the C: drive

And that runs me out of ideas. Does anyone else have any insights?

Reply 1 of 1, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

use the -c syntax

dosbox -c " mount c ./" -c " c:" -c " qbasic.exe /editor" 
add -c "exit" if you want it to exit

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