Command Prompt for Windows




Command RENAME or REN

Function:

Renames a file or files.

Syntax:

RENAME [drive:][path]filename1 filename2
REN [drive:][path]filename1 filename2
filename1Specifies the source file(s).
filename2Specifies the new file name(s).

Note:

A new drive or path can not be specified for the destination file (filename2).

Command REN can be used to rename directories. When renaming directories Wildcard characters can not be used.