Page 1 of 1

Name a file from the folder name

Posted: 26 Dec 2023, 15:44
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.

Re: Name a file from the folder name

Posted: 26 Dec 2023, 16:29
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 }