Description: Moves or renames a file and creates the destination directory tree when necessary.
Calling convention: MoveFile("AFileName": String, "NewFileName": String): Boolean
Parameters:
AFileName: existing source file path.
NewFileName: destination file path.
Returns: FALSE when either argument is Variant NULL. A missing source raises an exception. Otherwise the current implementation returns TRUE after calling the Windows move API, even if that API reports failure.
Availability: Default; requires file-system access to the source and destination.
Example:
Moved := MoveFile("C:\Input\report.csv", "C:\Archive\report.csv");