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.

For example, to copy all the files on the diskette in drive A to the diskette in drive B, type the following and press Enter:

COPY A:*.* B:

To copy all files with names that begin with the four letters “MEMO” and end with any single character, type the following and press

Enter:

__

COPY A:MEMO? B:

You can also use the COPY command to combine a number of files into one file. For example, to create a new file called DATA that consists of the files REPORT, FACTS, and MEMO, type the following and press Enter:

COPY REPORT + FACTS + MEMO DATA

In the above example, the files are located on the current drive, so no drive identifiers are necessary. To copy REPORT, FACTS, and

MEMO from drive A to the DATA file on drive B, type the following and press Enter:

COPY A:REPORT + A:FACTS + A:MEMO B:DATA

Renaming Files

You can use the RENAME command to change the name of a file or group of files on the same disk and directory. For example, to rename a file named PROSPECT (in the default directory) to CLIENT, type the following and press Enter:

RENAME PROSPECT CLIENT

You can shorten the RENAME command to REN. To change the name of a file from HAMMERS to WRENCHES, therefore, you can type the following and press Enter:

REN HAMMERS WRENCHES

5-8 Using MS-DOS with Your Equity 386