COPY

COPY

Copies one ￿le to another b y creating a new ￿le or b y overwriting an existing ￿le. This command can be used to cop y ￿les to and from HFS directories. Also, users with SM capabilities are able to cop y ￿les to MPE accoun ts outside of their curren t logon account.

Syntax

 

2

 

3

 

 

￿￿

,

￿

 

 

ASK

5

 

COPY

FROM=

source￿le

target￿le

￿4 NO

 

 

 

 

;TO=

 

2 YES

3

 

Parameters

 

 

 

 

 

 

 

 

 

 

 

source￿le

 

 

The name of the ￿le that is to be copied. A ￿le with HFS

 

 

 

syntax must begin with a dot (.), or a slash (/).

target￿le

 

 

The name of the ￿le to whic h source￿le is to be copied. If

 

 

 

target￿le

is omitted, the source ￿le is copied to source￿le in

 

 

 

the user's current working directory (CWD). Y ou may qualify

 

 

 

target￿le

with both ￿le and group names, or specify only the

 

 

 

destination group. If only group is speci￿ed, COPY puts a copy

 

 

 

of the source ￿le in a ￿le called source￿le in the speci￿ed

 

 

 

group.

 

 

 

 

 

 

 

 

 

 

 

 

Since .groupname can be speci￿ed as the target￿le , and HFS

 

 

 

￿le names can also start with a dot (.), this could lead to

 

 

 

confusion as to whether an MPE group or HFS ￿le name is

 

 

 

desired for the target￿le . If the target￿le

is an HFS ￿lename

 

 

 

starting with a dot (.), then the target￿le

must be preceded

 

 

 

with a dot and slash (./). F or example, to represen t a target￿le

 

 

 

.FOO in an HFS current working directory, the ￿le must be

 

 

 

represented as ./.FOO .

 

 

 

 

ASK

 

 

If target￿le already exists,

COPY prompts the user to c hoose an

 

 

 

action with the follo wing prompt:

 

 

 

 

 

 

PURGE OLD

target￿le?

 

 

 

 

MPE/iX Commands 2-53