RENAME (REN)
Changes the name of the file or files you specify.
You can rename all files matching the specified filename. You cannot use the
RENAME command to rename files across drives or to move files to a different
directory location. To rename subdirectories or move files, use the <MOVE>
command.
Syntax
RENAME [drive:][path]filename1 filename2
REN [drive:][path]filename1 filename2
Parameters
[drive:][path]filename1
Specifies the location and name of the file or set of files you want to
rename.
filename2
Specifies the new name for the file or, if you use wildcards, the new
names for the files. (You cannot specify a new drive or path.)
Related Commands
For information about renaming directories, see the <MOVE> command.
For information about renaming a disk, see the <LABEL> command.
For information about copying files to a different drive or directory, see
the <COPY> command.
For information about copying entire directories to a new location, see the
<XCOPY> command.
|