First post, by RrnR
I have this command for invoking DOSBox
"%DBEXE%" -userconf ^
-c "mount c c:\" ^
-c "path=C:\projects\tools;C:\projects\toolsrc" ^
-c C: ^
-c "cd %CD%" ^
-c "%*"
The carets are DOS batch continuation lines. %DBEXE% points to the DOSBox.exe executable.
DOSBox starts OK - the unravelled command becomes:
C:\Projects>"C:\Program Files\DOSBox 0.74\DOSBox.exe" -userconf -c "mount c c:\" -c "path=C:\projects\tools;C:\projects\toolsrc" -c C: -c "cd C:\Projects\Monitor\DTR"
but this is what I get in the DOSBox window as the commands run:
Z:>SET BLASTER=A220 I7 D1 H5 T6
Z:>mount c c:" -c
Drive C is mounted as local directory C:"\
Z:>C:
C:\CD C:\Projects
Unable to change to C:\Projects
It is no doubt related to quoting but I cannot get it to work. The mount command is wrong for a start (look at the command line - local directory C:"\ ?) - I have a C: drive of sorts mounted but I can't see any files on it, so the mount command didn't work.
What are the rules for quoting parameters?