- Select the files I want to rename
- Ctrl+M to open Multi-Rename Tool
- Select rename mask
- Press enter / click Start
It works fine and takes hardly any time, but I wanted single command that does all that. After quick search I found ExifTool by Phil Harvey. There are other tools or I could have written my own but it seems this one does what I need. No need to reinvent the wheel.
I came up with the following batch file to rename all the JPG files in the current directory.
Assuming you have four JPG files in the current directory and the batch file is called
rename_images.bat below you can see example output.
If you have files that do not have EXIF information in them the tool just skips them.
I have renamed the original
exiftool.exe. This is because the
-k is actually an option that is passed to the executable with the following effect.
I don’t want to press any key so I just renamed the executable. This has been documented in the ExifTool Forums.