VOGONS


First post, by Alporik

User metadata
Rank Newbie
Rank
Newbie

I have read the Manual, looked at the Wiki and searched the forum. Everything I read seems to indicate that what I am doing will work, so I am seeking help.

I have a desktop icon with properties that include the following target:

C:\DOSGames\DOSBox.exe -conf "C:\DOSGames\df.conf" -noconsole

In my C:\DOSGames folder I have a df.conf file that includes the following [autoexec] section:

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.

mount c c:\DOSgames\DaggerCD -freesize 1000
mount d c:\DOSgames\DaggerCD\dfcd -t cdrom -label Daggerfall
c:

When I doubleclick my icon, I get DosBox with no console, but my autoexec commands do not run. I have tried to specify the configuration file location without the ""s and without the C:\DOSGames, but I still never get my autoexec commands to run. As far as I can tell, I am configuring everything in accordance with the manual instructions. If anyone is able to point out my obvious error, I would appreciate it.

Alporik

Reply 1 of 9, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Leave the noconsole switch to get some insight.
Btw if you'd just named the conf file dosbox.conf you could have had success.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 2 of 9, by Alporik

User metadata
Rank Newbie
Rank
Newbie

I am afraid I don't know what you mean by "leave" the switch?

I run other programs with DosBox so I would like to have conf files for each. The manual says you can do that and I am trying to figure out what I am doing wrong.

Thanks.

Reply 3 of 9, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Check the console output. It tells which config file is used.

1+1=10

Reply 4 of 9, by Alporik

User metadata
Rank Newbie
Rank
Newbie

Removed -noconsole from the target statement and opened the icon.

The console says:
CONFIG:Loading primary settings from config file C:\Users\Michael\AppData\Local\DOSBox\dosbox-0.74.conf
Memory sizes above 31 MB are NOT recommended.
Stick with the default values unless you are absolutely certain.
MIDI:Opened device:win32

This is strange because when I look at C:\Users\Michael\, I see ten different folders, but none of the are named AppData or anything similar. Also appears to be no reference to the -conf switch that I am including in the command line, even though adding and removing the -noconsole switch certainly seems to have an effect.

Reply 5 of 9, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

MS has cleverly hidden the Local APPDATA folder. you can get there by executing "shell:Local AppData". To get to the config file you can just use the "edit config" link (or similar) in the dosbox startmenu folder.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 6 of 9, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Also use the -userconf switch instead of the -conf switch if you want to skip the default config file alltogether.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 8 of 9, by Alporik

User metadata
Rank Newbie
Rank
Newbie

I am afraid I don't understand executing "shell:Local AppData", but even if I could get to the folder being used by DosBox, my problem is that it is using some .conf file in that folder when I am specifying that it use a custom .conf as explained in the manual.

According to the manual, -userconf cannot be used with a configfilelocation like -conf can. In any case, I tried adding -userconf so that the target line is now

C:\DOSGames\DOSBox.exe -userconf -conf C:\DOSGames\df.conf

The outcome was the same, the specified .conf file was ignored, as was the console text.

I agree that my desktop link is done wrong, given that it isn't properly invoking the custom .conf file. I posted because I know its wrong, but I don't know how to fix it.

Reply 9 of 9, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

First of all that folder exists and IS being used by Dosbox. You execute that command in the search/run field of the start menu. But again you don't need to since the config file in there can already be edit by the dosbox start menu folder.
Anyway, try running the whole line on the command prompt (in the search/run field of the start menu run cmd.exe). Maybe that is more revealing. And I hope you didn't use all those spaces when you run it.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper