Rename only the first file in multiple folders

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

Rename only the first file in multiple folders

Postby Cas1 » Tue Sep 24, 2019 5:07 pm

Hello

I have the following folder structure
Folder 1
vacation 1 01.jpg
vacation 1 02.jpg
vacation 1 03.jpg
Folder 2
vacation 2 01.jpg
vacation 2 02.jpg
vacation 3 03.jpg

How can I make this renaming automatically
Folder 1
Folder.jpg
vacation 1 02.jpg
vacation 1 03.jpg
Folder 2
Folder.jpg
vacation 2 02.jpg
vacation 3 03.jpg

I can do the selection manually(select each file manually in Name-window) but if there are alot of folders and files it will take alot of time

Thanks
Regards
Cas1
 
Posts: 6
Joined: Tue Sep 24, 2019 4:55 pm

Re: Rename only the first file in multiple folders

Postby therube » Tue Sep 24, 2019 7:03 pm

So, what, you want to rename "vacation.*01" (or is it the "first" file) in each folder to "Folder.jpg" (literally, or to the parent folders name?)?
therube
 
Posts: 1317
Joined: Mon Jan 18, 2016 6:23 pm

Re: Rename only the first file in multiple folders

Postby Cas1 » Tue Sep 24, 2019 9:55 pm

As i shown in the exemple

vacation 1 01.jpg becomes Folder.jpg
vacation 2 01.jpg becomes Folder.jpg

The rest of the files in each folder should stay untouched
Cas1
 
Posts: 6
Joined: Tue Sep 24, 2019 4:55 pm

Re: Rename only the first file in multiple folders

Postby therube » Wed Sep 25, 2019 9:38 pm

Still not following if vacation.*01 & Folder.jpg are literal or not?

Anyhow, see if this does what you want?

1:RegEx
Code: Select all
Match:  ^vacation.*01.jpg$
Replace:  Folder.jpg
therube
 
Posts: 1317
Joined: Mon Jan 18, 2016 6:23 pm

Re: Rename only the first file in multiple folders

Postby Cas1 » Sat Sep 28, 2019 8:01 am

Thanks for trying to help

Let me try to explain more:

The actual case I try to solve is when the name of Subfolders are different, you have maybe 100 subfolder under one main-folder,

Mainfolder/

Folder 1
Vaction 02
Christmas 1997

etc..
Cas1
 
Posts: 6
Joined: Tue Sep 24, 2019 4:55 pm

Re: Rename only the first file in multiple folders

Postby Cas1 » Sat Sep 28, 2019 8:13 am

Thanks for trying to help

Let me try to explain more:

The actual case I try to solve is when the name of Subfolders are different, you have maybe 100 subfolder under one main-folder,

Mainfolder/

Folder 1
Vacation 02
Christmas 1997
Eastern 78
...... and so on


I would like to change the first file in each subfolder(Folder 1, Vacation 02, Christmas 1997 etc...) to "Folder.Jpg"
By doing this,windows explorer shows a Thumbnail when you select the subfolder to be presented as "Icons" in windows explorer

If i use BRU and browse to the Mainfolder(Left panel in BRU, the Name-side(right panel in BRU) shows ALL files in all subfolder,

Is the a way then to just ask BRU to select the first file in each subfolder and then rename that file to Folder.jpg

Hope this explains what i try to do
Cas1
 
Posts: 6
Joined: Tue Sep 24, 2019 4:55 pm


Return to BRU Support