VOGONS


First post, by ChaosFish

User metadata
Rank Member
Rank
Member

For me -exit never works, no matter which DOSBox version, what settings, for what game or on which computer.
I like to make shortcuts for DOSBox games using command line parameters, I.E.:
"C:\[path]\dosbox.exe" -c "mount c c:\games\game" -c "c:" -c "game" -exit -fullscreen -noconsole

The thing is, -exit never works. So instead I write:
-c "exit"
Which always does work.

So here's a question for the developers: Why not make "-exit" operate the same as writing "-c "exit"" after all commands?

If there was something I was doing wrong then this thread doesn't belong in Development probably, so in that case feel free to move it 😀

Reply 1 of 2, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

Maybe -exit doesn't like the -c parameters, just guessing. Anyway, why are you making things so difficult?

Just:
"C:\Path\Dosbox.exe" "C:\games\game\game.exe" -exit -fullscreen -noconsole

Does the same thing. It mounts C:\games\game as C:\ and then runs Game.exe from the simulated drive C:.

And no, this thread doesn't belong in development.

Reply 2 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

-exit only works if you specify a game.exe as parameter. not when only using -c
I could change this behaviour but them I'm afraid people will type stuff like

dosbox.exe -exit
or dosbox.exe -c "mount c c:\dos\ -exit
and wonder why dosbox exits

-exit is intended to be used by people who type the variant kippesoep explained.
-c is intended to do additional things when a game.exe is specified. (at the moment it does them without a game.exe as well)

Water flows down the stream
How to ask questions the smart way!