Page 1 of 1

rename files to parent folder name

Posted: 20 Mar 2024, 21:46
by justinsdrown
Hi there. I need to do this for old wrestling tapes. I use the "Other" category for certain wrestling territories.

The thing is that I downloaded an entire territory where each episode has the correct name on the parent folder. But the file itself is gobbledygook. There are about five years worth of episodes named like this. So any help is appreciated.

Re: rename files to parent folder name

Posted: 21 Mar 2024, 04:05
by rednoah
Use Plain File Mode and use {folder.name} as format:

Format: Select all

{ folder.name }

Same as Presets › Example 8: File to Folder but with a different format.

Re: rename files to parent folder name

Posted: 21 Mar 2024, 04:33
by justinsdrown
rednoah wrote: 21 Mar 2024, 04:05 Use Plain File Mode and use {folder.name} as format:

Format: Select all

{ folder.name }

Same as Presets › Example 8: File to Folder but with a different format.
Okay, and for the future, is there a way to name them after a second outer folder? I'm just trying to cover my bases for the future.

Re: rename files to parent folder name

Posted: 21 Mar 2024, 04:36
by rednoah
e.g.

Format: Select all

{ f[-3] }
or

Format: Select all

{ folder.dir.name }
:arrow: You can copy & paste from the Plain File Mode › Organize files based on information present in the file path example for these kinds of things.

Re: rename files to parent folder name

Posted: 21 Mar 2024, 04:44
by justinsdrown
rednoah wrote: 21 Mar 2024, 04:36 e.g.

Format: Select all

{ f[-3] }
or

Format: Select all

{ folder.dir.name }
:arrow: You can copy & paste from the Plain File Mode › Organize files based on information present in the file path example for these kinds of things.
Just tested and it works great. Thanks for the simple, straight-forward help.