I tried the cmd to change all my pictures but it didn't work because the naming of the pictures is difficult for the computer to rename it by the cmd trick.

This is my corrupted pictures naming:

my folder pictures

Is there a solution for this ? as naming each one would be a lot of work, because there are hundreds of pictures in the folders.

=============================================================================== Edit: adding a picture.

Here's another picture that explains how difficult it's to rename the file with simple methods; like, the cmd renaming command.


  1. the space, tricks the command launched at cmd window to know about it, so it won't work.

  2. the extension name is the biggest problem because it's different in each picture file, so it even more difficult to know the algorithm that fit this kind of naming.

I'm mean if anyone can tell what kind of algorithm I can use to follow the different file extension renaming pattern.

  • 2
    It is unclear what you are trying to achieve. Better add an example of some names, before and after the wanted change. – harrymc Oct 30 '19 at 8:16
  • 2
    Don't mix "file format" and "file name". If I rename some jpeg file into "crap.xyz", it still be in jpeg format, but with obscure name. This rename also doesn't corrupt file data in any way, so it is incorrect to call this "file corruption". Also, it is very easy to determine file format with the "file" utility: gnuwin32.sourceforge.net/packages/file.htm , but I don't know how to automate it in Windows. – Nikita Kipriyanov Oct 30 '19 at 9:19
  • @NikitaKipriyanov Thanks for correcting my understanding :) Also thanks for the link. – R1S8K Oct 31 '19 at 19:55
  • @harrymc I added more information. – R1S8K Nov 1 '19 at 13:35
  • 1
    What are you trying to rename them to? For example, to what should personal_pics (1).009 be renamed? – harrymc Nov 1 '19 at 14:05

You may just select all files in the folder, then click Rename (from the right-click menu or on the top) and add a file name like pers_pic.jpg; this way the files will have names like pers_pic (1).jpg, pers_pic (2).jpg etc.

Alternatively, you may use cmd in the following way:

ren personal* personal*.jpg

This will add a .jpg extension to all files.

Source: HTG

  • I tried that, the spaces in the names won't let me to do it with this command. – R1S8K Oct 31 '19 at 13:53

With Total Commander (it is shareware, downloadable at https://www.ghisler.com/), you have a quite comprehensive Multi Rename Tool, where you can change the file name, extension, using regular expressions and many other items. See the screenshot of the dialog below.

enter image description here

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.