Page 1 of 1

replace with folder name

PostPosted: Wed May 19, 2021 11:15 am
by Viszer
Hi all
I just started using the software and it as powerful as confusing rn for me :0 so i do have a question.
I have master folder with subfolders which hold some files and i would need in each of those subfolder to rename one file- always named the same way - to folder name and the rest of the files to stay as they are.
how can i do it? - idea would be to use replace but i dont see a way to replace it with active command - replace all xxx files to folder name and leave all other file the same as they are.

THX in advance

Re: replace with folder name

PostPosted: Wed May 19, 2021 4:25 pm
by therube
Is this 1 file always named the same?
Did you want the folder name of 1file's parent or of "master"?

12:Filters, allows you to set a Mask: to 1file (which would work assuming 1file(s) are able to be masked).
Or, you could drag & drop (only) 1file(s) into BRU...

7:Add
or
9:Append Folder Name, could cover you depending on your 'folder name' needs

Re: replace with folder name

PostPosted: Wed May 19, 2021 4:25 pm
by Luuk
Which file in each subfolder should be renamed ?? (Are they xxx.anyextension or like xxx.jpg ?)
How should the file be renamed?? (Does 'to folder name' mean 'to masterfolder' or 'to subfolder' ?)

Re: replace with folder name

PostPosted: Wed May 19, 2021 4:33 pm
by Luuk
Lol, its funny to see us asking the same questions! Dont worry, you will be in good hands with therube (if answering the questions properly).

Re: replace with folder name

PostPosted: Thu May 20, 2021 8:53 am
by Viszer
therube wrote:Is this 1 file always named the same?
Did you want the folder name of 1file's parent or of "master"?


the name of the file is always the same
the general structure is like that
-master
--day_1
--- clip_1.mp4
--- clip_x.mp4
--- preview.mp4
--day_2
--day_x

and I would need a way to rename all preview.mp4 to the name of the folder the preview is in - eg. day_1, day_2 etc. - best would be if i would be able to rename all 20-30 preview at once, not opening each separate folder and renaming it one by one.

therube wrote: 12:Filters, allows you to set a Mask: to 1file (which would work assuming 1file(s) are able to be masked).
Or, you could drag & drop (only) 1file(s) into BRU...


i did thought about masking but when i try to mask "preview" while being in master folder then i dont see the "day" folder so i cant select them...

therube wrote:7:Add
or
9:Append Folder Name, could cover you depending on your 'folder name' needs


for now thats the way i work -
2:Name - remove -> 9: append folder name but that require to go in to each folder separately and i was looking for a solution that would handle all preview files in all day folders in master folder

Re: replace with folder name

PostPosted: Thu May 20, 2021 5:36 pm
by therube
i did thought about masking but when i try to mask "preview" while being in master folder then i dont see the "day" folder so i cant select them...

You need to tic the 'subfolders' option in 12:Rename.

In the example, I used *.sys, but you would use Preview.mp4 (& other settings you require).
Image

Re: replace with folder name

PostPosted: Fri May 21, 2021 8:29 am
by Viszer
therube wrote:You need to tic the 'subfolders' option in 12:Rename.


ohhh... i did actually thought about it but i only played around "folder" checkbox

Re: replace with folder name

PostPosted: Fri May 21, 2021 8:31 am
by Viszer
but tank you very much!! that's sooo helpful :D