If no drive is specified or if the drive is a zero-length string ( &quot; &quot; ), CurDir returns the path for the current drive. $[officename] Basic reports an error if the syntax of the drive description is incorrect, the drive does not exist, or if the drive letter occurs after the letter defined in the CONFIG.SYS with the Lastdrive statement.
如果未指定驱动器或指定的驱动器是一个零长度字符串 ( &quot; &quot; )，CurDir 将返回当前驱动器的路径。如果说明驱动器的语法不正确、驱动器不存在或者驱动器号出现在 CONFIG.SYS 中 Lastdrive 语句定义的驱动器号之后，$[officename] Basic 将报告错误。