The information in this article applies to:
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 INFORMATION
You 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 query words: 2.00 3.00
Keywords : |
Last Reviewed: September 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |