Using RENAME (REN)

The RENAME command (can be abbreviated REN) can be used to rename one or more files through the use of the ? and * wildcards. RENAME uses the same syntax with any version of Windows:

J:\>rename /?
Renames a file or files.

RENAME [drive:][path]filename1 filename2.
REN [drive:][path]filename1 filename2.

Note that you cannot specify a new drive or path for your destination file.

For example, RENAME MYDOC.DOC MYNOVEL.DOC changes MYDOC.DOC to MYNOVEL.DOC. RENAME *.BAK *.OLD changes all *.BAK files in the current folder to *.OLD.

Windows 9x/Me cannot use DEL/ERASE to delete system, hidden, or read-only files. However, Windows NT/2000/XP ...

Get Absolute Beginner's Guide to A+ Certification now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.