J u m p t o c o n t e n t
M a i n m e n u
M a i n m e n u
N a v i g a t i o n
● M a i n p a g e
● C o n t e n t s
● C u r r e n t e v e n t s
● R a n d o m a r t i c l e
● A b o u t W i k i p e d i a
● C o n t a c t u s
● D o n a t e
C o n t r i b u t e
● H e l p
● L e a r n t o e d i t
● C o m m u n i t y p o r t a l
● R e c e n t c h a n g e s
● U p l o a d f i l e
S e a r c h
Search
A p p e a r a n c e
● C r e a t e a c c o u n t
● L o g i n
P e r s o n a l t o o l s
● C r e a t e a c c o u n t
● L o g i n
P a g e s f o r l o g g e d o u t e d i t o r s l e a r n m o r e
● C o n t r i b u t i o n s
● T a l k
( T o p )
1
I m p l e m e n t a t i o n s
2
E x a m p l e
3
S e e a l s o
4
R e f e r e n c e s
5
F u r t h e r r e a d i n g
6
E x t e r n a l l i n k s
T o g g l e t h e t a b l e o f c o n t e n t s
r e n ( c o m m a n d )
1 l a n g u a g e
● F r a n ç a i s
E d i t l i n k s
● A r t i c l e
● T a l k
E n g l i s h
● R e a d
● E d i t
● V i e w h i s t o r y
T o o l s
T o o l s
A c t i o n s
● R e a d
● E d i t
● V i e w h i s t o r y
G e n e r a l
● W h a t l i n k s h e r e
● R e l a t e d c h a n g e s
● U p l o a d f i l e
● S p e c i a l p a g e s
● P e r m a n e n t l i n k
● P a g e i n f o r m a t i o n
● C i t e t h i s p a g e
● G e t s h o r t e n e d U R L
● D o w n l o a d Q R c o d e
● W i k i d a t a i t e m
P r i n t / e x p o r t
● D o w n l o a d a s P D F
● P r i n t a b l e v e r s i o n
A p p e a r a n c e
F r o m W i k i p e d i a , t h e f r e e e n c y c l o p e d i a
ren / rename
Developer(s ) Various open-source and commercial developers Operating system OpenVOS , RT-11 , OS/8 , RSX-11 , ISIS-II , iRMX 86 , TOPS-20 , Z80-RIO , FLEX , CDOS , OS-9 , FlexOS , PC-MOS , 4690 OS , MPE/iX , THEOS/OASIS , OpenVMS , CP/M , MP/M , TRIPOS , AmigaDOS , DOS , MSX-DOS , SISNE plus , OS/2 , Windows , ReactOS , SymbOS , DexOSPlatform Cross-platform 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 computer files and in some implementations (such as AmigaDOS [1] ) also directories . It is analogous to the Unix mv
command. However, unlike mv
, ren
cannot be used to move files, as a new directory for the destination file may not be used. Alternatively, move
may be used if available. On versions of MS-DOS that do not support the move
command (older than 6.00), the user would simply copy the file to a new destination, and then delete the original file. A notable exception to this rule is DOSBox , in which ren
may be used to move a file, since move
is not supported.
Implementations [ edit ]
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] Cromemco CDOS ,[5] MetaComCo TRIPOS ,[6] DOS , IBM OS/2 ,[7] Microsoft Windows ,[8] ReactOS ,[9] SymbOS , and DexOS.
Multics includes a rename
command to rename a directory entry. It can be contracted to rn
.[10]
Stratus OpenVOS ,[11] DEC RT-11 ,[12] OS/8 ,[13] RSX-11 ,[14] Intel ISIS-II ,[15] iRMX 86 ,[16] TOPS-20 ,[17] Zilog Z80-RIO ,[18] TSC FLEX ,[19] Microware OS-9 ,[20] DR FlexOS ,[21] IBM/Toshiba 4690 OS ,[22] HP MPE/iX ,[23] THEOS/OASIS ,[24] and OpenVMS [25] also provide the rename
command which in some cases can be contracted to ren
.
The rename
command is supported by Tim Paterson 's SCP 86-DOS .[26] On MS-DOS , the command is available in versions 1 and later.[27] DR DOS 6.0 also includes an implementation of the ren
and rename
commands.[28]
In Windows PowerShell , ren
is a predefined command alias for the Rename-Item
Cmdlet which basically serves the same purpose.[29]
TSL PC-MOS includes an implementation of rename
.[30]
Like the rest of the operating system, it is licensed under the GPL v3 .[31]
It is also available in the open source MS-DOS emulator DOSBox .
Example [ edit ]
> 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"
The first parameter may contain a drive and a path, but the second parameter must contain only the new filename.
To remove certain characters of a file name in Microsoft Windows command prompt (XP & Higher) :
> rename "abcd*.txt" "////*.txt"
This will remove abcd from the file name.
Notes:
Same number of /
as the number of initial characters to remove.
Double quotes for both arguments.
It doesn't remove .
from file name
See also [ edit ]
References [ edit ]
^ "Manual" (PDF) . www.cpm.z80.de . Retrieved 2020-09-19 .
^ 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 .
^ 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 .
^ CDOS USER'S MANUAL
^ "Manual" (PDF) . www.pagetable.com . Retrieved 2020-09-19 .
^ "JaTomes Help - OS/2 Commands" . Archived from the original on 2019-04-14. Retrieved 2019-07-06 .
^ "Microsoft TechNet Rename (ren) article" . 11 September 2009.
^ "reactos/reactos" . GitHub . 3 January 2022.
^ "Multics Commands" . www.multicians.org .
^ "Manual" (PDF) . stratadoc.stratus.com . Retrieved 2020-09-19 .
^ "RT-11 HELP FILE" . paleoferrosaurus.com . Archived from the original on 2018-07-17. Retrieved 2018-07-16 .
^ "Concise Command Language" (CCL)."OS/8 Handbook" (PDF) . April 1974. Retrieved 28 November 2017 .
^ John F. Pieper (1987). RSX A Guide for Users (PDF) . Digital Equipment Corporation. ISBN 0-932376-90-8 . Retrieved 2020-09-19 .
^ ISIS II Users Guide
^ iRMX™86 INTRODUCTION AND OPERATOR'S REFERENCE MANUAL For Release 6
^ "TOPS-20 Command manual" (PDF) . Archived from the original (PDF) on 2020-08-09. Retrieved 2018-07-18 .
^ Z80-RIO OPERATING SYSTEM USER'S MANUAL
^ "FLEX 2.0 User's Manual" (PDF) .
^ Paul S. Dayan (1992). The OS-9 Guru - 1 : The Facts . Galactic Industrial Limited. ISBN 0-9519228-0-7 .
^ "FlexOS User's Guide" (PDF) . www.bitsavers.org . 1986. Archived from the original (PDF) on 2010-08-08. Retrieved 2020-09-19 .
^ "Users guide" (PDF) . archive.org . Retrieved 2020-09-19 .
^ "MPE/iX Command Reference Manual" (PDF) . Archived from the original (PDF) on 2018-10-21. Retrieved 2018-10-21 .
^ THEOS/OASIS User's Handbook
^ OpenVMS User's Manual [permanent dead link ]
^ 86-DOS - Disk Operating System for the 8086 - User's Manual (PDF) . Version 0.3 (Preliminary ed.). Seattle, Washington, USA: Seattle Computer Products, Inc. 1980. Archived from the original (PDF) on 2019-07-14. Retrieved 2019-07-14 . (59 pages)
^ Wolverton, Van (2003). Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition . Microsoft Press . ISBN 0-7356-1812-7 .
^ DR DOS 6.0 User Guide Optimisation and Configuration Tips
^ "Microsoft TechNet PowerShell Rename-Item (ren) article" . 22 October 2009.
^ PC-MOS User Guide
^ Jansen, Roeland (8 February 2018). "pcmos386v501: PC-MOS/386 v5.01 final release including cdrom driver sources" – via GitHub.
Further reading [ edit ]
External links [ edit ]
t
e
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
R e t r i e v e d f r o m " https://en.wikipedia.org/w/index.php?title=Ren_(command)&oldid=1231136732 "
C a t e g o r i e s :
● W i n d o w s c o m m a n d s
● C P / M c o m m a n d s
● I n t e r n a l D O S c o m m a n d s
● M S X - D O S c o m m a n d s
● O S / 2 c o m m a n d s
● R e a c t O S c o m m a n d s
● M i c r o c o m p u t e r s o f t w a r e
● W i n d o w s a d m i n i s t r a t i o n
H i d d e n c a t e g o r i e s :
● A l l a r t i c l e s w i t h d e a d e x t e r n a l l i n k s
● A r t i c l e s w i t h d e a d e x t e r n a l l i n k s f r o m O c t o b e r 2 0 2 2
● A r t i c l e s w i t h p e r m a n e n t l y d e a d e x t e r n a l l i n k s
● A r t i c l e s w i t h s h o r t d e s c r i p t i o n
● S h o r t d e s c r i p t i o n i s d i f f e r e n t f r o m W i k i d a t a
● T h i s p a g e w a s l a s t e d i t e d o n 2 6 J u n e 2 0 2 4 , a t 1 7 : 4 0 ( U T C ) .
● T e x t i s a v a i l a b l e u n d e r t h e C r e a t i v e C o m m o n s A t t r i b u t i o n - S h a r e A l i k e L i c e n s e 4 . 0 ;
a d d i t i o n a l t e r m s m a y a p p l y . B y u s i n g t h i s s i t e , y o u a g r e e t o t h e T e r m s o f U s e a n d P r i v a c y P o l i c y . W i k i p e d i a ® i s a r e g i s t e r e d t r a d e m a r k o f t h e W i k i m e d i a F o u n d a t i o n , I n c . , a n o n - p r o f i t o r g a n i z a t i o n .
● P r i v a c y p o l i c y
● A b o u t W i k i p e d i a
● D i s c l a i m e r s
● C o n t a c t W i k i p e d i a
● C o d e o f C o n d u c t
● D e v e l o p e r s
● S t a t i s t i c s
● C o o k i e s t a t e m e n t
● M o b i l e v i e w