VB CURDIR$ Function Not Reliable to Determine Program LocationLast reviewed: June 21, 1995Article ID: Q80611 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0- Microsoft Visual Basic programming system for Windows, version 1.0
SUMMARYThe CURDIR$ function returns the path to the current directory on the currently selected drive. Because the current directory is not necessarily the directory where the current Visual Basic program resides, the CURDIR$ function is not a reliable means for determining the location of the currently executing program. This information applies to the CURDIR$ function, and to the drive list box, directory list box, and file list box controls in Visual Basic.
MORE INFORMATIONYou can use any of the following methods to start a program under Windows:
If the program is launched using the second method from the Windows Program Manager, the CURDIR$ value will be the path to the location of the program that was started. If the program is launched using the fourth method, the CURDIR$ value is the working directory you specified for the icon, or if you left the working directory blank, CURDIR$ returns the Windows directory. NOTE: The current directory of an MS-DOS session does not necessarily indicate the current directory that will be returned by CURDIR$.
|
Additional reference words: 1.00 2.00 3.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |