Changes the current directory.
ChangeDirectory ( directoryname )
Argument |
Description |
---|---|
directoryname |
String for the name of the directory you want to set as the current directory |
Integer. Returns 1 if the function succeeds and -1 if an error occurs.
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( )