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
TypeCommand

ImplementationsEdit

 
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.

ExampleEdit

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

ReferencesEdit

  1. ^ https://archive.org/details/1988-rugheimer-spanik-amigados-quick-reference
  2. ^ http://www.cpm.z80.de/manuals/cpm22-m.pdf
  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. ^ https://www.pagetable.com/docs/amigados_tripos/tripos_manuals.pdf
  6. ^ http://www.jatomes.com/Help/Os2Cmd.php#RENAME
  7. ^ "Microsoft TechNet Rename (ren) article".
  8. ^ https://github.com/reactos/reactos/blob/master/base/shell/cmd/ren.c
  9. ^ http://stratadoc.stratus.com/vos/19.1.0/r098-19/wwhelp/wwhimpl/common/html/r098-19.pdf
  10. ^ http://paleoferrosaurus.com/beta/documents/rt11help.html#RENAME
  11. ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
  12. ^ ISIS II Users Guide
  13. ^ iRMX™86 INTRODUCTION AND OPERATOR'S REFERENCE MANUAL For Release 6
  14. ^ "TOPS-20 Command manual" (PDF).
  15. ^ Z80-RIO OPERATING SYSTEM USER'S MANUAL
  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. ^ http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
  19. ^ https://archive.org/details/4690OSV6r2UsersGuide/page/n169
  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