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

You can use wildcards to rename groups of files. For example, to change just the extensions of all files on drive B with the extension .NEW to .OLD, type the following and press Enter:

REN B:*.NEW *.OLD

To add the extension .OLD to all files that begin with the same five characters, MEMOS, but end with one varying character, type the following and press Enter:

REN MEMOS? MEMOS?.OLD

This command would rename files such as MEMO1 and MEMO2 to MEMO1.OLD and MEMO2.OLD.

See your MS-DOS Reference Manual for more information on the RENAME command.Deleting Files

You can delete files you no longer need with the DEL (delete) command. For example, to delete REPORT.AUG from drive B, type the following and press Enter:

DEL B:REPORT.AUGTo delete the file WRENCHES from drive B, type the following and press Enter:DEL B:WRENCHES

Using MS-DOS With Your Computer 3-13