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
 
 
 
 
 
TitleDisplay the program's current directory
DescriptionThis example shows how to display the program's current directory in Visual Basic 6.
KeywordsCurDir, show directory, display directory, current directory
CategoriesWindows, Files and Directories
 
This application uses CurDir to display its directory when it starts.
 
Private Sub Form_Load()
    txtCurDir.Text = CurDir
End Sub
 
Compile this program into an executable. Then make a shortcut to it, right-click the shortcut, select Properties, and change the program's "Start in" directory. You can use this to test the following example.

This example is mostly for use with the HowTo Shell a program with a specific startup directory rather than as a spectacularly interesting example by itself.

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated