COPYFILE

The COPYFILE function copies the source file to the destination file. It returns the copy file command status. On successful execution of this function: 0 is returned; on failure: an operating system-specific error code is returned.

Syntax:
COPYFILE(single-text-expression, single-text-expression, single-text-expression, single-text-expression)
Meaning:
COPYFILE [source, destination, number_of_retries (max 100), pause_between_retries_in_ms (max 100000)]
Returns:
A single number