VOGONS


First post, by kioteh

User metadata
Rank Newbie
Rank
Newbie

I've been reading through the DOSBox help and this forum but haven't found a way to use DOSBox to call a 16 bit application from a DOS batch file, have it execute, then close out so the batch file can continue. Can anyone tell me if this is even possible?

Reply 2 of 5, by kioteh

User metadata
Rank Newbie
Rank
Newbie

I'm using a call in the batch file to intiate DOSBox, but it only brings up the DOSBox window, it doesn't run my executable.

For example, my batch file looks like this:

call dosbox sa3.exe -noconsole -c "mount s c:\kioteh\"

but when it gets to that part of the batch file, it only opens up the dosbox window, it doesn'execute the command. I can run the commands manually, but that defeats the automation I was hoping for.

Thanks in advance for your help.

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

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I.e. dosbox -c "mount s c:\kioteh\" -c s: -c sa3.exe -c exit

1+1=10

Reply 4 of 5, by gidierre

User metadata
Rank Member
Rank
Member
kioteh wrote:

call dosbox sa3.exe -noconsole -c "mount s c:\kioteh"

that wouldn't do anyways since dosbox itself is an .exe and no .bat

should you make, say, a run_sa3.bat
whose contents (all paths adjusted!) look somewhat like

dosbox sa3.exe -noconsole -c "mount s c:\kioteh"

then the syntax would be better handled
I mean if you went
call run_sa3
instead, OK?

msdos call (vs. win* only start command) just calls another bat doesn't it

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

Reply 5 of 5, by kioteh

User metadata
Rank Newbie
Rank
Newbie

Perfect!!! Thanks for all the help. Works like a charm.