Open curvedlinee opened 2 years ago
You can have multiple -c
options, so you can do something like:
dosbox-x -c "mount c ." -c "c:" -c "c:\prog\run.bat"
Also the -c
options are run before any dos executable you provide.
dosbox-x -c "ver set 6.22" prog.exe
But it does seem that when you run like that, it does not mount the c: drive or switch to it, which obviously causes problems.
For the typematic rate setting, it seems to work for me:
DOSBox-X supports all command-line options of original DOSBox, plus more. Command-line options like -c
and -conf
are supported in DOSBox-X just like DOSBox. Moreover, you can directly set config options with -set
command-line option, e.g. dosbox-x -set machine=pc98
to force PC-98 machine type when launching DOSBox-X (regardless of the setting in the config files). You can use -set
multiple times for multiple config options. A list of supported command-line options of DOSBox-X can be viewed with the command dosbox-x -help
.
As for vDosPlus's usedrvs=on
option, you can do the exactly same thing with the automountall=true
option in DOSBox-X. All config options including automountall
can be set with -set
command-line option mentioned above, e.g. dosbox-x -set automountall=true -set machine=ega
.
Commands like mode con rate=32 delay=1
should work just fine in DOSBox-X. You may want to make sure you did not type the command incorrectly.
As for running multiple commands, it is supported in DOSBox-X with more or less the same syntax as in DOSBox. You can follow what @rderooy just said.
i just found the command below working
mount m m:\
mount n n:\
if there is a way to mount only the chosen drives in the dosbox-x.conf, please let me know because doing it below takes more than 2 operations
A.BAT has SET P1=C:\UTILITY SET P2=%P1%\vDosPlus SET P3=%P2%\BATCH SET P5=%P1%\XTGOLD ::PATH= PATH=%PATH%;%P1%;%P2%;%P3%;%P5%;C:.;..
MODE CON RATE=32 DELAY=1 still not working, reports as invalid parameters, this problem of mine doesnt have to solved now, but someday if i set my mind to dosbox-x completely,then i will go back to this problem why it isnt working.
this editor deletes \ from mount m m:\ and displays mount m m: and it bolds things where they are not supposed to it deletes a line like this -----------------------
You can of course mount only the chosen drives in dosbox-x.conf, by putting them in the [autoexec] section, e.g.
[autoexec]
mount m m:\
mount n n:\
OR you can run 'a.bat' right from [autoexec] section of dosbox-x.conf, e.g.
[autoexec]
call a.bat
As for why the command MODE CON RATE=32 DELAY=1
did not work for you, I found the reason - for the current released version you need to specify "RATE" and "DELAY" in lower-case, e.g. mode con rate=32 delay=1
instead of MODE CON RATE=32 DELAY=1
. This has been fixed, and you can download the DOSBox-X Windows build based on the latest code from:
Then it should be case-insensitive for RATE and DELAY options. Hope this helps.
dosbox-x.conf has as you said [autoexec] call a.bat a.bat
i got it working [autoexec] mount c c:\ c: call a.bat
oh you are posting at the same time, i looked at it long enough, it happened, thanks for the help
It appears that a.bat is not within %PATH%. If a.bat is located in the DOSBox-X directory then you can try something like this instead:
[autoexec]
mount y .
call y:\a.bat
Also make sure the paths as specified in A.BAT do exist inside DOSBox-X. Hope this helps.
Code of Conduct & Contributing Guidelines
Have you checked that no other similar question(s) already exists?
Question
AAA.BAT has DOSBOX.EXE "H:\BBB\aaa.EXE" -conf "m:\dosbox1.conf" -c "MOUNT h H:\BBB" what would be the similar command for dosbox-x?
vDOSplus can do this config.txt can do usedrvs=on what would be the way to do this with dosbox-x?
dosbox-x does not work for the command below MODE CON RATE=32 DELAY=1 or MODE CON: RATE=32 DELAY=1 how do i make it work? dosbox-x just says invalid
dosbox-x dosbox-x.exe mount C:\ -C "C:\DOSBox-X\A.BAT" is there a way for dosbox-x to run A.BAT after mounting C:? because dosbox-x gets to run A.BAT to nowhere before mounting C: i know dosbox says somewhere it must run the external cammand 1st before mounting how about it in dosbox-x? because DOSBOX.EXE E:\AAA\BBB.EXE -c scaler=hq2x -fullscreen dosbox mounts C: then runs BBB then applies -c scaler=hq2x -fullscreen