
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 current directory) to CLIENT, type the following and press Enter:
RENAME PROSPECT CLIENT
You can shorten the RENAME command to REN. For example, to change the name of a file from HAMMERS to WRENCHES, you can type the following and press Enter:
REN HAMMERS WRENCHES
You can use wildcards to rename groups of files. For example, to change the extensions of all files on drive C with the extension
.NEW from .NEW to .OLD, type the following and press Enter:
REN C:*.NEW *.OLD
To add the extension .OLD to all files that begin with the same four characters, MEMO, but end with one varying character, type the following and press Enter:
REN MEMO? MEMO?.OLD
This command renames files such as MEMO1 and MEMO2 to MEMO1 .OLD and MEM02.OLD.
See your