Ren (command)

In computing, codice_1 (or codice_2) is a command in various command-line interpreters (shells) such as codice_3, codice_4, 4DOS, 4NT and Windows PowerShell. It is used to rename computer files and in some implementations (such as AmigaDOS) 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 codice_5 command. However, unlike codice_5, codice_1 cannot be used to move files, as a new directory for the destination file may not be used. Alternatively, codice_8 may be used if available. On versions of MS-DOS that do not support the codice_8 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 codice_1 may be used to move a file, since codice_8 is not supported.
Implementations.
The command is available in the operating systems Digital Research CP/M, MP/M,<ref name="MP/M_1981_UG"></ref> Cromemco CDOS, MetaComCo TRIPOS, DOS, IBM OS/2, Microsoft Windows, ReactOS, SymbOS, and DexOS.
Multics includes a codice_2 command to rename a directory entry. It can be contracted to codice_13.
Stratus OpenVOS, DEC RT-11, OS/8, RSX-11, Intel ISIS-II, iRMX 86, TOPS-20, Zilog Z80-RIO, TSC FLEX, Microware OS-9, DR FlexOS, IBM/Toshiba 4690 OS, HP MPE/iX, THEOS/OASIS, and OpenVMS also provide the codice_2 command which in some cases can be contracted to codice_1.
The codice_2 command is supported by Tim Paterson's SCP 86-DOS. On MS-DOS, the command is available in versions 1 and later. DR DOS 6.0 also includes an implementation of the and commands.
In Windows PowerShell, codice_1 is a predefined command alias for the codice_18 Cmdlet which basically serves the same purpose.
TSL PC-MOS includes an implementation of codice_2. 
Like the rest of the operating system, it is licensed under the GPL v3.
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"
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: 