In computing, ren (or rename) is a command in various command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, 4NT and Windows PowerShell. It is used to rename computer files and in some implementations (such as AmigaDOS[1]) 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.

ren / rename
Operating systemOpenVOS, RT-11, RSX-11, OS/8, ISIS-II, iRMX 86, TOPS-20, Z80-RIO, FLEX, OS-9, FlexOS, PC-MOS, 4690 OS, MPE/iX, THEOS/OASIS, OpenVMS, CP/M, MP/M, TRIPOS, AmigaDOS, DOS, OS/2, Windows, ReactOS, SymbOS, DexOS


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

The command is available in the operating systems Digital Research CP/M,[2] MP/M,[3][4] MetaComCo TRIPOS,[5] DOS, IBM OS/2,[6] Microsoft Windows,[7] ReactOS,[8] SymbOS, and DexOS.

Stratus OpenVOS,[9] DEC RT-11,[10] RSX-11, OS/8,[11] Intel ISIS-II,[12] iRMX 86,[13] TOPS-20,[14] Zilog Z80-RIO,[15] TSC FLEX,[16] Microware OS-9,[17] DR FlexOS,[18] IBM/Toshiba 4690 OS,[19] HP MPE/iX,[20] THEOS/OASIS,[21] and OpenVMS also provide the rename command which in some cases can be contracted to ren.

On MS-DOS, the command is available in versions 1 and later.[22] DR DOS 6.0 also includes an implementation of the ren and rename commands.[23]

In Windows PowerShell, ren is a predefined command alias for the Rename-Item Cmdlet which basically serves the same purpose.[24]

TSL PC-MOS includes an implementation of rename.[25] Like the rest of the operating system, it is licensed under the GPL v3.[26]

It is also available in the open source MS-DOS emulator DOSBox.


ren filename newname
ren *.htm *.html

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

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

See alsoEdit


  1. ^
  2. ^
  3. ^ Digital Research (July 1981) [1979]. MP/M - Multi-Programming Monitor Control Program - User's Guide (PDF) (4 ed.). Pacific Grove, CA, USA: Digital Research. Archived (PDF) from the original on 2017-01-04. Retrieved 2017-01-04.
  4. ^ Digital Research (1981-09-25). MP/M-86 Operating System - User's Guide (PDF) (1 ed.). Pacific Grove, CA, USA: Digital Research. Archived (PDF) from the original on 2017-01-04. Retrieved 2017-01-04.
  5. ^
  6. ^
  7. ^ "Microsoft TechNet Rename (ren) article".
  8. ^
  9. ^
  10. ^
  11. ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
  12. ^ ISIS II Users Guide
  14. ^ "TOPS-20 Command manual" (PDF).
  16. ^ FLEX 2.0 User's Manual
  17. ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
  18. ^
  19. ^
  20. ^ MPE/iX Command Reference Manual
  21. ^ THEOS/OASIS User′s Handbook
  22. ^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. Microsoft Press. ISBN 0-7356-1812-7.
  23. ^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
  24. ^ "Microsoft TechNet PowerShell Rename-Item (ren) article".
  25. ^ PC-MOS User Guide
  26. ^ Jansen, Roeland (8 February 2018). "pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources" – via GitHub.

Further readingEdit

External linksEdit