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