Command COPY FILE Foundation
Copies a file to a new file or to an output device.
COPY FILE <cSourceFile> TO <cTargetFile>|<cDevice>
The file command COPY FILE copies a source file to a new file or sends the contents of the source file to an output device. If the file name does not include the path, the path specified using SET DEFAULT is used as the default path. If the file <cTargetFile> already exists, it is overwritten without warning. If <cTargetFile> is an invalid file name or <cSourceFile> does not exist, a runtime error is generated.
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.