-
NT System Variables
Hey fellas,
I'm trying to write a front-end for a macro written for a 3D Plant Modeling software package and I've run into a roadblock. I need for it to me compatable to anyone's installation so I'm trying to pull the enviornment variables from NT's System Variable list. Let's not say trying, as trying might imply that I've gotten anywhere with it. Anyhoo, if anyone has any ideas or simply wants to tell me that this is way too easy to bother with API (which I only assume I need) please help. Thanks!
-
There is a vb function to get environment variables. It's called Environ. Just use it like this:
sPath = Environ("path")
One drawback with it is that it doesn't track changes to environment variables while your program is running. But it should be just fine for you.
-
Thanks
Thank you, that worked beautifully!