VOGONS


First post, by AdamPl

User metadata
Rank Newbie
Rank
Newbie

Hello

Is there a way to mount a directory with path based on host windows system variables? I'd like to mount something like this:

mount c %userprofile%\somedir

DosBox seems not to see host system variables ;(

Best regards

Reply 1 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox -c "mount c %useprofile%" ?
or some thing like that.

This should be in dosbox general [moved]

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

Reply 2 of 3, by AdamPl

User metadata
Rank Newbie
Rank
Newbie

ok, but what if in config file is batch with command starting program from that location?

the drive is mapped after running autoexec from config file...

Reply 3 of 3, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox -c "set blah=%userprofile%" -conf myconfigfile
and use %blah% inside your scripts ?

be creative

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