VOGONS


-exit option ignored

Topic actions

First post, by giomach

User metadata
Rank Newbie
Rank
Newbie

This works as expected (in Windows Vista):

"C:\Program Files\DOSBox-0.74\DOSBox.exe" %CD%\query.exe -exit

but this, which I thought should be equivalent, ignores the -exit option:

"C:\Program Files\DOSBox-0.74\DOSBox.exe" -c "mount c %CD%" -c "c:" -c query.exe -exit

I have to use the second form, as I will want to supply a parameter to query.exe. How can I make -exit work here?

Thanks for your help.

PS. The above are used inside batch files. The same thing happens when they are typed at the DOS prompt, with the "%CD%" replaced by the full current directory.

Reply 1 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

-c exit

It is actually documented, that -exit works with a "name" argument.

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

Reply 2 of 2, by giomach

User metadata
Rank Newbie
Rank
Newbie

Great! Many thanks.