Click to See Complete Forum and Search --> : environment variables on windows 98/ME and 2000 pro
enriquein
Jul 30th, 2001, 09:53 AM
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
Aaron Young
Jul 30th, 2001, 05:48 PM
You can use the Environ() function in VB to extract Environment variable values, i.e.Private Sub Form_Load()
Caption = Environ("TEMP")
End Sub
chrisjk
Jul 30th, 2001, 06:58 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.