First post, by 5150dole
The DOSBox man page explains that one should be able to run a DOS command/program directly from a Unix-like bash (etc.) shell:
dosbox [file]
Accordingly, I can run this:
dosbox EXPAND.EXE
However, I want to use EXPAND.EXE non-interactively and I want to script this from bash. I would like to run the following:
dosbox EXPAND.EXE DELOLDOS.EX_ DELOLDOS.EXE
However, this does not work as expected. Perhaps differences between Unix/DOS whitespace handling and globbing are a complicating factor. Either way, I want to run the EXPAND.EXE as before and give it the "DELOLDOS.EX_ DELOLDOS.EXE" input and output file parameters.
How do I do that?
(NB: Just EXPAND does not work, it's necessary to specify the full filename for [file], with extension. Perhaps DOSBox could be improved so as to tolerate the omission of executable file extensions?)
I have also tried
dosbox -c EXPAND.EXE DELOLDOS.EX_ DELOLDOS.EXE
but that's failing even worse, because it tries to run the EXPAND.EXE command before mounting the partition the EXPAND.EXE is on, and it also doesn't handle the parameters correctly.
It's not really clear from the man page what I should rather do.