Page 1 of 1

Renaming a large list of subfolders and files

PostPosted: Wed Aug 17, 2016 5:05 pm
by chinmayd
Hi BRU Community!

I apologize in advance if I did not use the search function efficiently to find an existing solution to my problems in the forum or help files.

Here is what my folder structure looks like:

C:\Sundar\Supplier Name\GibberishName\Gibberish123.jpg

This is how I want it: C:\Sundar\Supplier Name\SUN-SN-10001\SUN-SN-10001-1.jpg

The logic is - all the GibberishName subfolder should contain:
1. a prefix "SUN-" (no conditional logic required here, SUN- should exist in every subfolder and filename.)
2. After which it should take the initials of "Supplier Name", so "SN-".
3. Then it should start with 10001.

And every file in the above folder should have filename as: foldername-1.jpg

10001 and 1 in the subfolders should increase with each file and folder name.

I hope I made myself clear.


How can I go about doing this?

Thanks a lot!