Using COPY

The COPY command lets you copy files in several ways:

CI Copy individual files from a diskette or the hard disk to another diskette or hard disk

LI Copy a group of files using wildcard characters (wildcard characters are explained below)

Ll Copy one or more files and give them new names
D Combine or merge files into one file.
A few simple rules apply to all uses of COPY:

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

DIf an existing file on the target diskette or directory has the same name as the file you are copying, the copy automatically replaces (overwrites) the existing file. MS-DOS does not provide a warning. Be careful you do not accidentally replace a file that you want to keep.

tl 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:

3-20Using MS-DOS With Your Computer