Using the COPY Command

You can use the COPY command to copy files in several ways:

You can copy individual files from a diskette or the hard disk to another diskette or hard disk

You can copy a group of files using wildcard characters (wildcard characters are explained below)

You can copy one or more files and give them new names

You can combine or merge files into one file.

A few simple rules apply to all uses of COPY:

You must tell MS-DOS where to find the source file and where to store the target file.

If an existing file on the target diskette or directory has the same name as the file you are copying, the copy automatically replaces the existing file. There is no warning that the existing file is being replaced, so be careful that you do not accidentally erase a file that you want to keep.

If you are copying to a diskette, the diskette must be formatted.

To use the COPY command, type COPY at the command prompt, followed by the drive identifiers and necessary filenames. Then press Enter to execute the command.

For example, to copy a file named REPORT from the diskette in drive A to the hard disk (drive C), using the same name for the copy as for the original file, type the following and press Enter:

COPY A:REPORT C:

If you want to copy this file from the diskette in drive A to the hard disk, but want to change the name of the copy from REPORT to FACTS, type this command and press Enter:

COPY A:REPORT C:FACTS

5-18 Using MS-DOS With Your Equity LT-286