Results 1 to 3 of 3

Thread: environment variables on windows 98/ME and 2000 pro

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Location
    Mayaguez, PR
    Posts
    7

    Question environment variables on windows 98/ME and 2000 pro

    Im trying to make a program that uses environment variables (such as the windows directory and temp folders). Does anyone know how can I use them, and which work on windows 98/Me and which work for win 2000 ???

    I mean, i know its done with API functions, but i don't know them =(

    thanx 4 da help

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    You can use the Environ() function in VB to extract Environment variable values, i.e.
    VB Code:
    1. Private Sub Form_Load()
    2.     Caption = Environ("TEMP")
    3. End Sub

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    You can also use API to retrieve things like Win Temp and System folders, see these tips

    http://161.58.84.209/files/tip226.html
    http://161.58.84.209/files/tip227.html
    http://161.58.84.209/files/tip228.html

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