How to Rename File from Parent Folder Name in many folders

This macro is only valid for multiple files in a folder:

How do I do this when I have 30 such folders? As shown in the figure, there are 4 files waiting to be renamed in each folder:

image

solved.

Rename File to Parent Folder(Many folders).kmmacros (4.9 KB)

image

1 Like