Duplicates a specified file.

Syntax

COPY FILE <filename> TO <new name>

Description

COPY FILE is identical to the File object’s copy( ) method, except that as a command, the file name arguments are treated as names, not character expressions. They do not require quotes unless they contain spaces or other special characters. If the name is in a variable, you must use the indirection or macro operators.

See copy( ) for details on the operation of the command.