Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleGet the Windows directory from the environment
DescriptionThis 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.
KeywordsWindows directory, Windows, WinDir, Environ, environment
CategoriesSoftware 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
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated