A few simple rules apply when copying files:

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

You cannot create a new file with the same name and in the same directory as an existing file.

If an existing file on the target diskette or directory has the same name as the file you are copying from, 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 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 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:

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

COPY A:REPORT B:FACTS

To copy a file onto the same diskette or directory with a new name, type the following and press Enter:

COPY REPORT FACTS

In the example above, you can omit the drive identifiers because the source and target files are both on the current drive.

An easy way to copy a group of files is by using wildcard characters 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.

Using MS-DOS with Your Equity Ie

4-15