REN
Home >>
MS-DOS Reference >>
Command Categories >>
File and Disk Management >>
REN
Description
Renames a file or group of files
Command Syntax
REN filename1 filename2
or
RENAME filename1 filename2
-
filename1 can either be a single file or it can contain wildcards
-
filename2 must be in the same directory
Comments
A single file can be renamed thus: REN FILE1.TXT FILE2.TXT
or REN FILE1.TXT *.BAK
A group of files can be renamed thus: REN *.BAT *.BAK
or REN A*.BAT *.BAK
The following examples are not allowed:
REN C:\TEMP\FILE1.TXT C:\NEW\FILE2.TXT
REN *.EXE *.*
It is also not possible to rename a directory; use XCOPY and RD instead
Printed from the NukeSoft MS-DOS Reference. Copyright
© 1995 - 2006 Marcus Houlden