I have a task to rename a lot of photos that had naming corruption and I have to rename each photo a lone which is a lot of work.

I thought why won't there be a solution to record all the process of selecting a photo, then choose rename, then paste the required name and choose YES for the warning that the file could be unusable like this one:

enter image description here

and another yes for numbering duplicate naming like:

enter image description here

How to record all these steps with just selecting all the photos, drag them into a cmd program or right click and choose the recorded macro ?


Here's an example of the problem in my folders.

enter image description here

The extension is developed in a way that it is so difficult to change it by ordinary windows rename or even by cmd special commands.

  • if you use cmd then just rename the file in command line. There won't be any message boxes like that – phuclv Apr 13 '20 at 3:22
  • Yeah I tried that it didn't work. My naming corruption is so difficult to solve !! Let me update my post. – R1S8K Apr 13 '20 at 3:51
  • 1
    use powershell's rename. It accepts any regexes or any code blocks to do custom renaming – phuclv Apr 13 '20 at 3:59
  • OK, could you point me to a link that has the commands I need for this operation ? – R1S8K Apr 13 '20 at 4:06

Looks like you just need the files to have the correct extension and don't care very much about the filenames, in that case the following PowerShell command should do:

Just open PowerShell and paste the following command. You might need to correct the path.

Get-ChildItem "I:\media & personal\personal pictures_need_rename\camera" | foreach { mv $_.FullName "$($_.FullName).JPG"}

What this does is it adds ".jpg" to each and every file in the specified folder. For example, IMG_2.J04 becomes IMG_2.J04.JPG

  • Thank you so much man :)) – R1S8K Apr 13 '20 at 19:18

Though it won't record macros, if you wish to use a graphical interface to rename files in bulk, this sounds possibly like a job for Bulk Rename Utility. It's free for personal use and has quite a few options to manipulate file names.

For instance, assuming you wanted to change ex.:


to ex.:

Vacation - 1.jpg
Vacation - 2.jpg
Vacation - 3.jpg

You could select the original images in the main BRU window (i.e. with the Left Mouse Button and Shift, as normal) and could adjust/apply the BRU Remove (5), Add (7), Numbering (10) and Extension (11) filters:

ex. Bulk Rename Utility

Bulk Rename Utility - Screenshot

After selecting the Rename button in the lower right of the BRU interface, the new file names (previewed/updated in real time in green) would be applied to the files.

  • Thanks ! I actually tried to use this program before but I think I didn't know how to use it. – R1S8K Apr 15 '20 at 4:40
  • You're welcome. =) Sometimes the best solutions are the simplest. – Anaksunaman Apr 15 '20 at 11:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.