Home > database >  Batch renaming part of filenames using filter to identify files with set prefix
Batch renaming part of filenames using filter to identify files with set prefix

Time:06-15

I have a series of image files with a set prefix that I would like to remove. Example of the filenames that I will have:

  • Image_2022-06-09-12-29-00_Filename-01
  • Image_2022-07-09-13-29-59_Filename-02
  • Image_2022-02-11-09-26-31_Filename-03

I would like them to turn into:

  • Filename-01
  • Filename-02
  • Filename-03

I currently have a .bat file that manages to remove the first part of all the files which can either be .jpg or .png files:

set current_dir=           
  • Related