LOTUSSCRIPT LANGUAGE


ChDir statement
Example

Sets the current directory.

Syntax

ChDir path

Elements

path


Usage

ChDir sets the current directory to path. The current directory is the directory that LotusScript uses when you specify a file name without a path.

If the value of path does not begin with a drive letter, ChDir sets the current directory for the current drive.

If the value of path includes a drive letter, ChDir sets the current directory for that drive, but does not reset the current drive. The path will not be used as the current directory until the current drive is reset. To change the current drive, use ChDrive.

To return the current drive, use CurDrive. To return the current directory, use CurDir.

The format and maximum length of path follow the conventions of the platform on which LotusScript is running.

Example
See Also