|
|
Title | Display the program's current directory |
Description | This example shows how to display the program's current directory in Visual Basic 6. |
Keywords | CurDir, show directory, display directory, current directory |
Categories | Windows, 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.
|
|
|
|
|
|