VOGONS


First post, by NeilC

User metadata
Rank Newbie
Rank
Newbie

I'm working on an old dos app, trying to modify it to run sucessfully in dosbox, however i've run across an issue. It seems that it uses a native function for which i don't have the source which requires the environment variable comspec to be set, however it always returns that it cannot find it in the environment.

I can use a getenv type function to return it within my app, and it has the right value, so the function must use some other call, is there a way i can find out what the call is or why this is failing?

Has anyone else ever heard of this kind of issue with environment variables?

Reply 2 of 2, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

a weird program that is.
The variable comspec is set by dosbox to z:\command.com

Try setting it to other values to see if that changes a thing.

Figuring out in which way your application acces the envirionment is tricky as there many way to acces it.

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