◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── CURDIR$[(drive$)] Usage Notes ■ The argument drive$ must be in the range A to lastdrive, where lastdrive is the maximum drive letter you may have set in your CONFIG.SYS file. ■ If no drive is specified or if drive$ is a null string, CURDIR$ returns the path for the currently selected drive. Note: This is similar to using the CHDIR command at the system prompt without specifying a path. See: ◄CHDIR Statement► ■ Visual Basic generates an error if: • The first character drive$ lies outside the range A to lastdrive, unless you are working in a networked environment • The first character in drive$ corresponds to a drive that does not exist • The first letter in drive$ is not a letter ■ CURDIR$ is not case sensitive ("C" is the same as "c"). ■ Since only the first letter of the drive$ argument is used, the colon (:) is always optional.