Results 1 to 3 of 3

Thread: NT System Variables

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    Atlanta
    Posts
    2

    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!
    Whatever.

  2. #2
    Tygur
    Guest
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    Atlanta
    Posts
    2

    Thanks

    Thank you, that worked beautifully!
    Whatever.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width