Rename folder contents based on name of folder + increment

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Rename folder contents based on name of folder + increment

Postby trooper » Tue Jun 11, 2019 4:37 pm

Hi All
I have a whole load of folders named by a number (eg "12345") and inside each folder I have 10 JPG files names 1,2,3,4,5,6,7,8,9,10 .JPG. I need a way to rename each of the files with 1.JPG being the folder name and each subsequent file to increment by 1. Ideally I need to point at the top level that contains all of the numbered folders and run the program rather than having to run it on individual folders.

For example:

Folder 12345
1.JPG
2.JPG
3.JPG
ETC

Needs to be:

Folder 12345
12345.JPG
12346.JPG
12347.JPG

I am new to this utility so not sure if what I am asking is too much.

Thanks you very much in advance for any help that you may be able to give.

Mario
trooper
 
Posts: 1
Joined: Tue Jun 11, 2019 4:31 pm

Re: Rename folder contents based on name of folder + increment

Postby therube » Thu Jun 13, 2019 5:09 pm

Without using the JavaScript renaming part, don't know that you'll be able to do that.


If you didn't need the incremental filenames, but instead were OK something like...

dir/dir
dir/dir_1
dir/dir_2
dir/dir_3

Folder 12345
12345.JPG
12345_1.JPG
12345_2.JPG
12345_3.JPG

that is easy enough to do.

2.remove
9.prefix
options -> prevent dups
therube
 
Posts: 536
Joined: Mon Jan 18, 2016 6:23 pm


Return to BRU Support