|
|
Title | Get the Windows directory from the environment |
Description | This example shows how to get the Windows directory from the environment in Visual Basic 6. It uses the Environ statement to get the value of the windir environment variable. |
Keywords | Windows directory, Windows, WinDir, Environ, environment |
Categories | Software Engineering, Files and Directories, API |
|
|
Thanks to Bill Hileman.
The program uses the Environ$ statement to read the windir environment variable.
|
|
Private Sub Form_Load()
Label2.Caption = Environ$("windir")
End Sub
|
|
|
|
|
|