Jump to content

ren (command)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Bevo (talk | contribs) at 16:43, 20 February 2015 (Removed {notability|date=May 2012} and {no footnotes|date=March 2010}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.


In computing, ren (or rename) is a command in various DOS, OS/2 and Microsoft Windows [1] 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 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. RT-11, RSX-11 and OpenVMS also provide the rename command which 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. [2]

Example

ren filename newname
ren *.htm *.html

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

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

See also

References

  1. ^ "Microsoft TechNet Rename (ren) article".
  2. ^ "Microsoft TechNet PowerShell Rename-Item (ren) article".