LOTUSSCRIPT LANGUAGE


CurDir function
Example

Returns the current directory on a specified drive.

Syntax

CurDir[$] [ ( drive ) ]

Elements

drive


Return value

CurDir returns the current directory on drive.

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

Usage

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( ).

Language cross-reference

@FileDir function in formula language

Example
See Also