ChangeDirectory

Description

Changes the current directory.

Syntax

ChangeDirectory ( directoryname )

Argument

Description

directoryname

String for the name of the directory you want to set as the current directory

Returns

Integer. Returns 1 if the function succeeds and -1 if an error occurs.

Examples

Example 1

This example changes the current directory to the parent directory of the current directory and displays the new current directory in a SingleLineEdit control:

ChangeDirectory( ".." )

sle_1.text= GetCurrentDirectory( )

See also