SetCurrentDirectory()

Syntax

Result = SetCurrentDirectory(Directory$)
Description
Changes the current directory for the program.

Parameters

Directory$ The full path to the new current directory, or a path relative to the existing current directory.

Return value

Returns nonzero if the current directory has been successfully changed, return zero otherwise.

Remarks

All files accesses are relative to this directory, when no absolute path is specified. To get the current directory, use GetCurrentDirectory().

Specific OS path separator characters are available #PS, #NPS, #PS$ ('\') and #NPS$ ('/').

See Also

GetCurrentDirectory()

Supported OS

All

<- RenameFile() - FileSystem Index - SetFileAttributes() ->