Renames a file. Unlike the move command, this command cannot be used to rename subdirectories, or rename files across drives. |
SYNTAX: |
ren filename newname |
A more useful function of this command is to mass rename files by the use of wildcards. For example, the following command will change the extension of all files in the current directory from htm to html: |
ren *.php *.php |
Check Also
Select the Directory List
To look for a specific filename extension, we can use the SELECTED DIRECTORY command. …