VOGONS


First post, by Waussie

User metadata
Rank Newbie
Rank
Newbie

Hello everyone,

I just tried a few frontends, and was thinking of creating my own.
I just wonder how some features are to be configured in dosbox.
If anyone could help me out here, cause i couldn't find it in the wiki or docs,
but seem to be implementable because some frontends do configure them.

- Run a dosgame and after it closes, close dosbox aswell.
- Can i configure the -noconsoleflag by default,
for instance place it in the .conf or something?

I thank you for all your help.

Waussie

Reply 1 of 8, by gidierre

User metadata
Rank Member
Rank
Member
Waussie wrote:

- Run a dosgame and after it closes, close dosbox aswell.
- Can i configure the -noconsoleflag by default,

make a batch file, with the -noconsole and -exit commands.

We often forgive those who bore us, but we cannot forgive those whom we bore. (La Rochefoucauld)

Reply 2 of 8, by Waussie

User metadata
Rank Newbie
Rank
Newbie

I use the folowing string in my program:

dosbox.exe -noconsole "%1"

Where %1 is the dosgame executable to run and is variable.

So where do I put the exit statement or that batchfile?

A batchfile like this:

dosbox.exe -noconsole "%1"
exit

Doesn't seem to work!

Also I can't put the exitstatement in the autoexec section of the conf, because dosbox will than close before the game is started.

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

User metadata
Rank DOSBox Author
Rank
DOSBox Author

-exit parameter, not a newline.

1+1=10

Reply 4 of 8, by Waussie

User metadata
Rank Newbie
Rank
Newbie

Thank you, that works just fine as a parameter. Is there a list which describes all valid parameters?

Reply 6 of 8, by dma1968

User metadata
Rank Newbie
Rank
Newbie

I have a problem with -exit.
My batch file is:
dosbox.exe c:\laf1\run.bat -c -exit
run.bat is a file for launch aplicatioon.
I test other options but never run.

The aplication run correct but not exit from DOSBox when program stops.

Thankyou.
dma1968

Reply 7 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

does run.bat run other bat files ?
and your command is wrong. remove the -c

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

Reply 8 of 8, by dma1968

User metadata
Rank Newbie
Rank
Newbie

OK now work.
The problem is because -exit is necessary after dosbox.exe.

Thankyou.
dma1968