0

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?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197

1 Answers1

2

You can use the "environ" function to retrieve the directory, as I show below:

Dim windowsDir As String
windowsDir = Environ("windir")