VOGONS


First post, by michael1955

User metadata
Rank Newbie
Rank
Newbie

First of all, I am new to DOSBox, so please be patient with me, if I am asking a dull question !

I wish to set a system wide environment variable under Windows 7, and pass its context to a variable in the DOSBox.
Is there a way to "get" environment variables from the host operating system?

((I hope now ma question makes it into the right forum))

Reply 1 of 5, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

save them in a text/bat file and read/run that inside dosbox.

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

Reply 2 of 5, by michael1955

User metadata
Rank Newbie
Rank
Newbie

Sorry, but this russion method is not quite what I wanted to hear.

Calling a batch file, that reads the env variables - stores them in a file with the dosbox-command as last record and then executing that file - is not quite what I want to do

Reply 3 of 5, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dunno.

echo set var=value > test.bat
dosbox ./test.bat

isn't that complicated. Otherwise you are out of luck. The whole of idea of dosbox is seperate your OS from the game running inside it. (as DOS games don't like Windows 7)

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

Reply 4 of 5, by michael1955

User metadata
Rank Newbie
Rank
Newbie

OK - Thanks

I must look for some other possibility then.
All my Shortcuts in Windows 7 have e.g.: the drive letter as a global Environment letter, since most drives are NAS or USB

again Thank you for the info