First post, by wiering
Is it possible to pass a parameter to a game directly from the commandline?
dosbox game -n
(where -n is a parameter for the game, not for dosbox)
Mike Wiering
Wiering Software - http://www.wieringsoftware.nl/
Is it possible to pass a parameter to a game directly from the commandline?
dosbox game -n
(where -n is a parameter for the game, not for dosbox)
Mike Wiering
Wiering Software - http://www.wieringsoftware.nl/
In the [autoexec] section. see the README.
Hmmm. I don't think you can do that directly. You should be able to it indirectly, by creating a BAT-file with the necessary parameters. E.g. create a CMD-file or shell-script that does something like:
echo game -n > \path\to\your\virtual\C\drive\GSTART.BAT
dosbox -c "mount C \path\to\your\virtual\C\drive" -c "C:" -c "GSTART.BAT"
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
MiniMax, your own command line example contains an example of command with parameter. What's the matter with
dosbox -c "game -n"
?
wrote:MiniMax, your own command line example contains an example of command with parameter. What's the matter with
dosbox -c "game -n"
?
Nothing I guess 😊 My mistake.
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
Thanks, I got it to work like this:
dosbox -c "mount c: ." -c "c:" -c "game.exe -n"
Mike Wiering
Wiering Software - http://www.wieringsoftware.nl/