Previous Topic: Print - Output the String Text to the ScreenNext Topic: SetDrive - Change the Current Drive


SetDirectory - Change the Current Directory

Valid on Windows only

The SetDirectory function changes the current directory.

Function format:

SetDirectory(pathstring as String) as Boolean
pathstring

Specifies the name of the directory to create.

On successful completion, the function returns TRUE, otherwise returns FALSE.

Example:

Rem switch to c:\backup
If Not(SetDirectory(c:\backup) Then
	Print("c:\backup does not exist");
	exit
End If