VOGONS

Common searches


First post, by wiering

User metadata
Rank Newbie
Rank
Newbie

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/

Reply 2 of 5, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

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

Reply 4 of 5, by MiniMax

User metadata
Rank Moderator
Rank
Moderator
`Moe` 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