VOGONS


First post, by steve.mackinney

User metadata
Rank Newbie
Rank
Newbie

How can I get dosbox to use a configuration file that I distribute with my free basketball stats program instead of having dosbox create a config file and use it? For my own use, I have no problem with finding the config file that dosbox created and customizing it, but I want to make it simple for ignorant users to install and run my program without having to find and edit (or replace) the config file.

I have tried putting the config file in the same folder with the dosbox program (program files (x86)/dosbox-0.74) but it doesn't seem to find it. I have also put it in the same folder with my application and using a command line parameter to point to it (-userconf c:\dos\stats, also tried -conf c:\dos\stats) but it does not find it there either. I tried naming the config file dosbox-0.74.conf and dosbox.conf but neither one worked. I also made sure to delete the config file that had been built in users/myname/appdata/local/dosbox but it just got rebuilt again each time I ran dosbox.

The items I customize in the config file are:
fullscreen=true
cycles=max
mount c c:\dos\stats
c
bbstat

I have tried doing these same things in the command line but could not get it to run my program and could not find a way to tell it to make cycles=max.

Thanks for any suggestions you may have.

Reply 1 of 3, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

Add the filename to the -conf parameter (e.g: -conf c:\dos\stats\myconf.conf).

Reply 3 of 3, by steve.mackinney

User metadata
Rank Newbie
Rank
Newbie

Bloodbat, thank you. That solved my problem. Dominus, I will look at it. Anything to avoid getting emails with questions. Thanks a lot.