Open main menu

Wikipedia β

Description of the RENAME command of RT-11SJ displayed on a VT100.

In computing, ren (or rename) is a command in various CP/M[1], DOS, OS/2 and Microsoft Windows[2] command line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, 4NT and Windows PowerShell.

It is used to rename files and in some implementations (such as AmigaDOS[3]) also directories. It can also move a file to a new path, if it is on the same device. It is analogous to the Unix mv command.

RT-11[4], RSX-11, TOPS-20[5] and OpenVMS also provide the rename command which in some cases can be contracted to ren. In Windows PowerShell, ren is a predefined command alias for the Rename-Item Cmdlet which basically serves the same purpose.[6]


ren filename newname
ren *.htm *.html

Another example. This will rename a default video found in Windows 7 with a new name:

ren C:\Users\Public\Videos\"Sample Videos"\Wildlife.wmv Wildlife2.wmv

See alsoEdit