VOGONS


First post, by newcomer

User metadata
Rank Newbie
Rank
Newbie

Hi all,
I'm a newbie so forgive me if my question is trivial. I'm tring to change the serial port property from command line. What I'm trying is something like this:

%programfiles%\dosbox-0.73\dosbox <my exe program> -c "config -set "serial serial2=directserial realport:com15""

where <my exe program> is an old MS-DOS program using COM2. Unfortunately this does not work (why ??). The reason why I want to do this from the command line is that the port number (in this case 15) can change and I don't want to edit the .conf file all the times (of course the same line (serial2=directserial realport:com15) works perfectly if I put it in the .conf file).

Any help greatly appreciated

Reply 1 of 2, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox -c "serial1 directserial realport:com1"
or
dosbox -c "config -set serial serial1 directserial realport:com1"

multiple "" don't work so well.
I think you need to put <my exe program> into -c blocks too.

1+1=10

Reply 2 of 2, by newcomer

User metadata
Rank Newbie
Rank
Newbie

The second line you suggest (-c "config -set serial serial2=directserial realport:com5") works perfectly! Thanks a million!