Used to rename files and directories from the original name to a new name.
In earlier releases of MS-DOS instead
of using ren or rename you need to use the move
command to rename your MS-DOS directories or files.
Renames a file/directory or files/directories.
RENAME
[drive:][path][directoryname1 | filename1] [directoryname2 | filename2]
REN [drive:][path][directoryname1 | filename1] [directoryname2 |
filename2]
Note that you cannot specify a new drive or path for your destination.
Rename the directory chope to hope.
rename c:\chope hope
Rename all text files to files with .bak extension.
rename *.txt *.bak
Rename all files to begin with 1_. The asterisk (*) in this example is an example of a wild character because nothing was placed before or after the first asterisk this means all files.
rename * 1_*
APPEND | ARP | ASSOC | AT | ATTRIB | BREAK | CACLS | CALL | CD |
CHCP | CHDIR | CHKDSK | CHKNTFS | CLS | CMD | COLOR | COMMAND | COMP |
COMPACT | CONTROL | CONVERT | COPY | DATE | DEBUG | DEL | DELTREE | DIR 2 |
DIR ... | DISKCOMP | DISKCOPY | DOSKEY | ECHO | EDIT | EDLIN | ERASE | EXIT |
EXPAND | FC | FDISK | FIND | FOR | FORMAT | FTP | GRAFTABL | HELP |
IPCONFIG | LABEL | LOADFIX | MD | MEM | MKDIR | MODE | MORE | MOVE |
MSCDEX | NBTSTAT | NET | NETSTAT | NLSFUNC | NSLOOKUP | PATH | PATHPING | PAUSE |
PING | PROMPT | RD | REN | RENAME | RMDIR | ROUTE | SET | |
SETVER | SHARE | SHUTDOWN | SORT | SUBST | TIME | TREE | TYPE | UNLOCK |
VER | VERIFY | VOL | XCOPY |