Copy Statement

Copies a file to another location.

Syntax
Copy source, destination

Parameters

source
Specify the pathname and filename of the file to copy. See ChDisk for the details.
destination
Specify the pathname of the destination to copy the source file to and filename to copy. See ChDisk for the details.

Description
Copies the specified source filename to the specified destination filename.

The same pathname and filename may not be specified for both source and destination files.

An error occurs if the destination already exists.

Note


A network path is available.


Wildcard characters (*, ?) are not allowed in specified filenames.

When used in the Command window, quotes and comma may be omitted.

See Also
ChDir, MkDir

Copy Command Example
The following example is done from the Command window.

> copy TEST.DAT TEST2.DAT


> Copy TEST.DAT c:    'NG
!! Error: 7203 Access is denied.
> Copy TEST.DAT c:\     'OK
>