CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Posts
    4

    How can I retrieve the value of WINDOWS PATH variable?

    I don't know how to retrieve the value of WINDOWS PATH, that u can find
    in the AUTOEXEC.BAT file for example, or in the Section "Environment" of the control panel (system icon) of Win NT?

    Perhaps an API exist?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How can I retrieve the value of WINDOWS PATH variable?

    GetEnvironmentVariable is the API to look for.


  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: How can I retrieve the value of WINDOWS PATH variable?

    You can also the Environ$() function of VB, I believe that Envrion$("WINDIR") returns the winows dir as stated in the environment settings.

    Crazy D @ Work :-)

  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: How can I retrieve the value of WINDOWS PATH variable?

    good point. I seem to be API-addicted :-)


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

Featured