Name a file from the folder name

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Prolite669
Posts: 1
Joined: 26 Dec 2023, 15:38

Name a file from the folder name

Post by Prolite669 »

I have photos organized in folders with names like MM-DD-YYYY (Event). For Example 12-25-2023 (Christmas Day). How would you make that format the beginning of the file's name. Then I would like to generate an order based on image time. The end result would be something like = 12-25-2023 (Christmas Day) 01.jpg.
User avatar
rednoah
The Source
Posts: 23449
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Name a file from the folder name

Post by rednoah »

So you just want to add a number to the end of the current file name? Batch Rename any type of file › Rename photos will get you sorted.

e.g.

Format: Select all

{ fn } { i.pad(2) }



:idea: You will probably want to add the number at the beginning though so that files sort nicely by default:

Format: Select all

{ i.pad(2) } { fn }
:idea: Please read the FAQ and How to Request Help.
Post Reply