Rename Folders and Files at the Same Time

Advanced Renamer forum
#1 : 19/07-24 23:16
Jalen Kimble
Posts: 9
How do I rename multiple folders and the files inside each folder at once? For example, I have 18 folders that I want to name Fan 1-18, then apply those names to their respective files.
#2 : 20/07-24 00:00
Delta Foxtrot
Posts: 323
Reply to #1:

Hi Jalen,

I don't know of a way to do that with a single press of the "Start batch" button–unless you are prepared to do some light coding in javvascript, but it would be much quicker and easier to do it in two batch operations, one on the folders, then on the files.

Rename folders:
REPLACE method:
TTBR: <Name>
RW: Fan <IncNrDir:1>
[execute "Batch start" while viewing folders ]

Rename files:
REPLACE method:
TTBR: <Name>
RW: <DirName>
[you'll need to differentiate filenames in some way. I'd add "_<IncNrDir:01>" personally, although you can also use the Name collision rule to do something similar)
[execute "Batch start" while viewing files]

Hope that helps; maybe Miguel can think of another way to do what you want.

Best,
DF
#3 : 20/07-24 15:52
Jalen Kimble
Posts: 9
Reply to #2:

What if I want to add the folder names to the beginning of the ones from their respective files?

edited: 20/07-24 18:26