Fixing Multiple File Extentions Using the Rename Command

Recently I ran across an issue where the file extension was missing on quite a few files. While right clicking on the file and renaming it is not so bad, doing that 47 times could  be quite time consuming. The command line “RENAME” came in to save the day.

1. I copied the files I needed to change into a new folder on the C drive.

2. start / run “cmd” to pull up a command prompt

3. cd c:\rename

4. rename * *.jpg

5. Copied rename files back into the original folder overwriting the files which needed to be changed.

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

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