HP 3000 Manuals

Lesson 5: COPY [ MPE V to MPE XL: Getting Started ] MPE/iX 5.0 Documentation


MPE V to MPE XL: Getting Started

Lesson 5:  COPY 

The new command COPY copies one file to another.

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                   MPE V/E                   |                   MPE XL                    |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| DSCOPY                                      | DSCOPY                                      |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| FCOPY                                       | FCOPY                                       |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
|                                             | COPY                                        |
|                                             |                                             |
---------------------------------------------------------------------------------------------

Suppose you have a file named MYFILE that you want to copy, and that you
want to name the copy MYCOPY.

     COPY FROM=MYFILE;TO=MYCOPY

or

     COPY MYFILE,MYCOPY

If a file named MYCOPY already exists, the prompt PURGE OLD? appears.  A
YES answer overwrites the old file.  A NO answer terminates the copy
process, leaving the original file MYCOPY intact.

Exercises 

9.   Use the file LUCY that you created earlier.  Make a copy of the file
     LUCY and call it RICKY.

10.  Make editing changes to the file RICKY so that it now looks
     different.  Save it again as RICKY (purging the old RICKY). Then
     COPY the file RICKY to the file LUCY.

     a.   Answer NO to the prompt and look at the file LUCY. What
          happened?

     b.   Try copying again.  Answer YES to the prompt and look at the
          file LUCY. What happened?

     c.   What command did you use to look at the file LUCY?



MPE/iX 5.0 Documentation