Copying Files
You can use the COPY command to copy individual files or
groups of files. COPY is an internal command; you can use it
any time you see the MS-DOS command prompt.
You can use the COPY command to copy files in several ways:
You can copy individual files from one disk to another
You
can
copy a group of files using wildcard characters
You can copy one or more files and give them new names
You can combine or merge files into one file.
To use the COPY command, type
COPY
at the command
prompt, followed by the drive designators 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 diskette in drive B (using the same name for
the copy as for the original file), type the following and press
Enter:
COPY A:REPORT B:
You now have two files named REPORT,
one
on the
diskette
in drive A and one on the diskette in drive B.
If you want to copy the file named REPORT from the diskette
in drive A to the diskette in drive B using a new name,
FACTS, for the copy, type the following
and press Enter:
COPY A:REPORT B:FACTS
The file REPORT remains unchanged on drive A, but a new
file named FACTS now exists on
drive
B.
3-10
Using MS-DOS With Your Computer