I need to access the Windows directory in my project. How can I get the Windows path? I mean how can I get the path, where Windows is installed?
Asked
Active
Viewed 65 times
0
-
`Environ("windir")` – braX Feb 14 '23 at 06:26
1 Answers
2
You can use the "environ" function to retrieve the directory, as I show below:
Dim windowsDir As String
windowsDir = Environ("windir")

Isa Kurbanov
- 81
- 7