CurDir function (LotusScript® Language)

Returns the current directory on a specified drive.


CurDir[$] [ ( drive ) ]



Optional. A string expression specifying an existing drive. If you omit drive, CurDir uses the current drive.

Return value

CurDir returns the current directory on drive.

CurDir returns a Variant of DataType 8 (String). CurDir$ returns a String.


If the value of drive is a string of more than one character, CurDir uses only the first character. CurDir does not require a colon after the drive letter.

To set the current directory on a specified drive, use ChDir. To set the current drive, use ChDrive. To return the current drive, use CurDrive.

You can call this function with no arguments as either CurDir or CurDir( ).