Function FileMove() Foundation

Moves a file to another directory.

Syntax
FileMove( <cSourceFile>, ;
          <cTargetFile>  ;
        ) --> nErrorCode
Return

Possible return values correspond to #define constants found in XBTSYS.CH

Return values of FileMove()
Constant Description
NO_DISK_ERR File was moved successfully
ER_FILE_NOT_FOUND File not found
ER_PATH_NOT_FOUND Invalid path was specified
ER_ACCESS_DENIED Access denied
ER_DIFFERENT_DEVICE Target file is not on the same drive

Description

The function moves <cSourceFile> to a file specified with <cTargetFile>. The target file must be on the same drive as the source file.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.