Command syntax

General information and assistance with DOSBox.

Command syntax

Postby agardk » 2014-3-17 @ 17:10

Hello all,

I just had to rebuild my system and have gotten DOSBox re-installed with issue. I also have the initial .conf file set with my mounts as it should be. My issue is that I have a couple of different applications that I would like to create shortcuts for by utilizing dedicated .conf files for each. I have created the individual conf files and test each and they work as expected. My issue is with the syntax needed to call the individual conf files from the shortcuts. I've tried it a few different ways but apparently am not doing it correctly.

Right now the default shortcut calls "I:\DOSBox-0.74\DOSBox.exe -userconf"

What is the proper syntax to start DOSBox using i:\DOSBox-XXX.conf ?

Thanks!
agardk
Newbie
 
Posts: 2
Joined: 2014-3-17 @ 16:28

Re: Command syntax

Postby Dominus » 2014-3-17 @ 18:03

After - userconf add the path to the conf file.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7939
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

Re: Command syntax

Postby agardk » 2014-3-18 @ 17:31

So the command should look like this: "I:\DOSBox-0.74\DOSBox.exe -userconf i:\DOSBox-XXX.conf" ??
agardk
Newbie
 
Posts: 2
Joined: 2014-3-17 @ 16:28

Re: Command syntax

Postby Dominus » 2014-3-18 @ 18:38

Yes
User avatar
Dominus
DOSBox Moderator
 
Posts: 7939
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

Re: Command syntax

Postby Dominus » 2014-3-18 @ 21:30

sorry, use -conf instead of -userconf. I always confuse them.

Explanation: -userconf means that the default config file will be used first and only then the config you point to with "-conf path-to-config". The way Dosbox works is that the configs *stack*. So with "-userconf" the first config in the stack is the default one, then you *place* the next one with the "-conf path-to-config" and then you can stack another one with "-conf path-to-another-config" and so on. The top configs overrule the bottom config except for the [autoexec] section, this one gets appended. What this means is that you need to place only those settings in your special config you load with -conf that are different to the default file.
User avatar
Dominus
DOSBox Moderator
 
Posts: 7939
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

Re: Command syntax

Postby IIGS_User » 2014-3-19 @ 17:34

Dominus wrote:sorry, use -conf instead of -userconf. I always confuse them.

:cool:
Klimawandel.
User avatar
IIGS_User
Oldbie
 
Posts: 904
Joined: 2007-3-14 @ 19:59
Location: native_lang=ger

Re: Command syntax

Postby Dominus » 2014-3-19 @ 17:40

Ha ha
User avatar
Dominus
DOSBox Moderator
 
Posts: 7939
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 1 guest