Rename based on Folder>Subfolder name

I found this post from 2008

It works fine for batch renaming within the same folder

But is there a way to make a macro based on naming both the current folder the image is in, and its' parent?

Example:

*Vacation
**NewZealand
***2017-02-03.jpg

Batch renamed file would go from this:

2017-02-03.jpg

to

Vacation_NewZealand_0001.jpg

You can use {parent1} for the item's parent, {parent2} for that folder's parent, and so on.

1 Like