|
REN or RENAME
Changes the name of a file or a set of files. RENAME is a
synonym for REN.
Syntax
REN [drive:][path]old_filename new_filename
Parameters
[ drive : ][ path ] old_filename : Specifies the location
and name of the file or
set of files you want
to rename.
new_filename : Specifies the new name for the file.
Both the source and/or destination may include wildcards.
You cannot specify a different drive or path for
`new_filename` - use the MOVE command instead.
Rename will not work if new_filename already exists.
You can rename all files matching the specified file name.
Examples
For example, you want to change the .txt extensions to .doc
extensions. To make this change, type:
REN *.txt *.doc
To rename a file or directory named Dir10 to Doc10, type:
REN dir10 doc10
Cmd Commands
|