How do i get the temp path of a computer with vb 6? Ive searched already in google and everywhere, i think its simple, i found out how to get windows folder path, but i dont know how it works for the temp folder.... Thanks
Printable View
How do i get the temp path of a computer with vb 6? Ive searched already in google and everywhere, i think its simple, i found out how to get windows folder path, but i dont know how it works for the temp folder.... Thanks
See the article Get the Windows, System, and Temp directories from our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page)
You can also use Environment variables:
Code:Private Sub Command1_Click()
Debug.Print Environ("temp")
Debug.Print Environ("tmp")
End Sub
what is the syntax for getting the path which is set under some environment variable in the system?
Did you not see my post? :confused:
yeah, i saw it! but after setting the variable also the string has nothing in it. Eventually i closed VB and started a new session then it started working! Thank you!