◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── CURDIR$ returns the path currently in use for the specified drive. CURDIR$[(drive$)] ■ The argument drive$ must be in the range A to lastdrive, where lastdrive is the maximum drive letter you 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. This is similar to using the CHDIR command at the system prompt without specifying a path. Usage Notes ■ BASIC generates an error if the first character in the argument drive$ lies outside the range A to lastdrive, unless you are working in a networked environment. ■ BASIC also generates an error if the first character in the argument drive$ corresponds to a drive that does not exist, or if the first letter in the argument drive$ is not a letter. ■ CURDIR$ is not case sensitive. "C" is the same as "c."