Jump to content

ren (command)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Ghettoblaster (talk | contribs) at 13:32, 6 July 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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 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.

Implementations

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

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

Stratus OpenVOS,[9] RT-11,[10] RSX-11, OS/8,[11] ISIS-II,[12] iRMX 86,[13] TOPS-20,[14] Zilog Z80-RIO,[15] TSC FLEX,[16] Microware OS-9,[17] FlexOS,[18] 4690 OS,[19] MPE/iX,[20] THEOS/OASIS,[21] 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.[22]

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

Example

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 also

References

  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 from the original (PDF) on 2017-01-04. Retrieved 2017-01-04. {{cite book}}: Unknown parameter |dead-url= ignored (|url-status= suggested) (help)
  4. ^ Digital Research (1981-09-25). MP/M-86 Operating System - User's Guide (PDF) (1 ed.). Pacific Grove, CA, USA: Digital Research. Archived from the original (PDF) on 2017-01-04. Retrieved 2017-01-04. {{cite book}}: Unknown parameter |dead-url= ignored (|url-status= suggested) (help)
  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. ^ "Microsoft TechNet PowerShell Rename-Item (ren) article".

Further reading