VOGONS


First post, by giomach

User metadata
Rank Newbie
Rank
Newbie

When using the "name" option on the dosbox command line to specify a program, is it possible to supply a parameter to that program? (When running the program from the normal DOS command line, program parameters follow the program name, separated by spaces.)

A workaround is to create a batch file to hold the program name and parameter, and name the batch file to dosbox, but it would be tidier if it could all be done on the dosbox command.

Thanks for your help.

Reply 1 of 2, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Use the "-c" switch, as in

dosbox.exe -c "mount c c:\foo" -c "c:" -c "cd bar" -c "baz.exe /blah"

Depending on your needs, you may also want to consider using commands in the "autoexec" section of dosbox.conf .

Reply 2 of 2, by giomach

User metadata
Rank Newbie
Rank
Newbie

Many thanks, that has solved it.

(There is a side effect, though, which I'll raise as a separate query.)