VOGONS

Common searches


First post, by BuckoA51

User metadata
Rank Member
Rank
Member

Probably going to kick myself this has to be something obvious but, I am trying to use the -exit parameter to make DOSBox close as soon as I'm done playing my game, but instead of that I'm just getting "Illegal command -exit" on the DOSBox command line, what's wrong with my syntax? Here's the line:-

"D:\Emulators\DOSBOX-074-c\DOSBox.exe" -conf "%LOCALAPPDATA%\DOSBox\dosbox-0.74-RallyChamp.conf" -exit

Thanks

play-old-pc-games.com

Reply 1 of 4, by Osprey

User metadata
Rank Member
Rank
Member

I'm not sure why that doesn't work for you, since it works for me. I don't declare custom .confs on my command line, though, so it probably has to do with that. GOG games use custom .confs, and I see that they end their command lines with "-c exit" (which just sends the regular exit command to DOSBox), so it seems that they couldn't get -exit to work, either. You might just use the workaround that they use or, of course, add exit to your [autoexec], assuming that you're launching the game from there, too.

Last edited by Osprey on 2017-11-27, 18:17. Edited 2 times in total.

Reply 3 of 4, by BuckoA51

User metadata
Rank Member
Rank
Member

Lines as follows:-

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c D:\ROMs\DOS
mount d E:\ -t cdrom -usecd 0 -ioctl
c:
cd NETWOR~1\RALLYC
RALLY.BAT

I will give -c exit a go too thanks.

play-old-pc-games.com