ren (command)
Operating system | OpenVOS, 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 |
---|---|
Type | Command |
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
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
- ^ https://archive.org/details/1988-rugheimer-spanik-amigados-quick-reference
- ^ http://www.cpm.z80.de/manuals/cpm22-m.pdf
- ^ 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) - ^ 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) - ^ https://www.pagetable.com/docs/amigados_tripos/tripos_manuals.pdf
- ^ http://www.jatomes.com/Help/Os2Cmd.php#RENAME
- ^ "Microsoft TechNet Rename (ren) article".
- ^ https://github.com/reactos/reactos/blob/master/base/shell/cmd/ren.c
- ^ http://stratadoc.stratus.com/vos/19.1.0/r098-19/wwhelp/wwhimpl/common/html/r098-19.pdf
- ^ http://paleoferrosaurus.com/beta/documents/rt11help.html#RENAME
- ^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
- ^ ISIS II Users Guide
- ^ iRMX™86 INTRODUCTION AND OPERATOR'S REFERENCE MANUAL For Release 6
- ^ "TOPS-20 Command manual" (PDF).
- ^ Z80-RIO OPERATING SYSTEM USER'S MANUAL
- ^ FLEX 2.0 User's Manual
- ^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts. Galactic Industrial Limited. ISBN 0-9519228-0-7.
- ^ http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf
- ^ https://archive.org/details/4690OSV6r2UsersGuide/page/n169
- ^ MPE/iX Command Reference Manual
- ^ THEOS/OASIS User′s Handbook
- ^ "Microsoft TechNet PowerShell Rename-Item (ren) article".
Further reading
- Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1556152894.
- Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0078818714.
- Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O'Reilly. ISBN 978-0-596-00148-3.