If an existing file on the target diskette has the same name as the file you are copying from the source diskette, the copy replaces the file on the target diskette. Because there is no warning that the file on the target diskette is being replaced, be very careful that you do not accidentally erase a file you want to keep.

The target diskette cannot be an unformatted diskette.

To use the COPY command, type COPY, the drive identifiers, and the necessary filenames, and then press Enter. In the following examples, you substitute your own filenames for the items in italics.

Suppose you want to copy a particular file from the diskette in drive A to the diskette in drive B using the same name. Type:

COPY A: file1.ext B:

If you want to copy a file from the diskette in drive A to the diskette in drive B using a new name, type:

COPY A:file1.ext B:file2.ext

To copy a file onto the same diskette with a new name, type:

COPY file1 file2

In this case, you do not need the drive identifiers.

An easy way to copy a group of files is by using a wildcard character in the filenames. You can use two wildcard characters: * and ?. The asterisk represents any group of characters and the question mark represents any single character. To copy all the files on the diskette in drive A to the diskette in drive B, type:

COPY A:*.* B:

To copy to drive B all the files on drive A that begin with the same four letters but are followed by a single letter that varies, type:

COPY A:file? B:

Using MS-DOS With the Equity LT

4-13