Copy Command

This command copies a file on devices like the flash disk and ROMDISK.

Copy source_file destination_file

Prerequisites

None

Parameters

source_file

The fully specified path and file name of an existing file to be copied.

destination_file

The fully specified path and file name of the destination file.

Remarks

This command copies a single file stored on a device like the flash disk or ROMDISK.  A wild card specification of multiple files is not permitted.

The complete path must be specified for both the source and destination. There are no defaults for any fields.

If a directory in the destination path does not exist, the directory is not created and the copy fails with an error message.

If the destination file already exists, it is overwritten.

Examples

Copy /flash/projects/Hello/Main.gpl /flash/Main.tmp

See Also

Console Commands | File.Copy Method