Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
XML RSS Feed
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
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-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated