VOGONS


First post, by littlesat

User metadata
Rank Newbie
Rank
Newbie

What I miss is an option to add a parameter to dosbox. I have a work-a-round to create a bat file and run that one, but it would be nice to add parameters so the work-a-round is not required anymore...

e.g.

now I create a bat file...
test.bat ->
dosomething inputfile.txt

but it would be nice to have
dosbox c:/testfiles/dosomething -parameter inputfile.txt

Is this possible or do I have to live with my work-a-round?

Reply 2 of 2, by Zorbid

User metadata
Rank Member
Rank
Member

You could use the -c command:

dosbox -c "mount c c:/testfiles/" -c "c:" -c "dosomething inputfile"

Not very elegant, but it would work.

Otherwise, I think that it should be possible to write a .bat file that accepts a cleaner command line and translates it into something DOSBox understand, but I'm not good enough at batch scripting.

edit: Qbix beat me to it 😀