|
-
Jun 4th, 2001, 04:15 PM
#1
Thread Starter
New Member
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!
-
Jun 4th, 2001, 08:31 PM
#2
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.
-
Jun 5th, 2001, 09:04 AM
#3
Thread Starter
New Member
Thanks
Thank you, that worked beautifully!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|