by Luis Cantero (14 Submissions)
Category: Windows System Services
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
It returns the path of the windows or temp folders.
Code Returns
The path of the requested folder.
strWindir = Environ("WinDir") ' ->C:\Windows
strTempDir = Environ("temp") ' ->C:\Windows\Temp
strTempDir = Environ("tmp") ' ->C:\Windows\Temp