VOGONS

Common searches


First post, by RrnR

User metadata
Rank Newbie
Rank
Newbie

I have installed DOSBox and it looks pretty robust. However my main reason for installing was to enable me to run some batch builds that depended on some MS-DOS 16 bit apps that it is not worth porting to 32-bit. These batch files run fine on Windows XP, but I have just ported to a WIndows 8 64-bit system and the only way I can run the 16-bit apps in these batch builds is to run inside a DOSBox.

However, DOSBox doesn't seem to implement the syntax construct:

if <condition> (
blah
blah
)
else (
blah
blah
)

There are other batch "features" I use like delayed expansion also that probably won't work though I haven't investigated these . Is these a way to handle these (apart from rewriting the batch files and polluting them with GOTOs)?

TIA
R

Last edited by RrnR on 2014-02-06, 21:24. Edited 1 time in total.

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Not sure which command interpreter you used in the past , but not many DOS supported if else constructs with brackets.
So yes goto are the way to go.

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

Reply 2 of 3, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

DOSBox emulates DOS not the Command Prompt.

You can try loading 4DOS 8.0 in DOSBox http://www.4dos.info/sources.htm

How To Ask Questions The Smart Way
Make your games work offline

Reply 3 of 3, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
Qbix wrote:

but not many DOS supported if else constructs with brackets.

Indeed. Depending on the nature of the programs, you might be able to interpret the batch file using the Windows command prompt and substitute DOSBox (with the appropriate parameters) for the name of the executable.