Add to file name some part from folder name

Advanced Renamer forum
#1 : 12/05-21 03:32
Juan Pablo
Juan Pablo
Posts: 2
I was not able to add to file name certain part from the folder name.
Ex.
Folder [2021-05-11] XXXXX
File XXXXX
I want only add [2021-05-11] from folder name.
Thxs.


12/05-21 03:32
#2 : 12/05-21 13:13
David Lee
David Lee
Posts: 1125
Easiest solution is to add the entire filename and then delete the unwanted fragment.

Assuming that you wish to add the date to the end of the existing filename....

1) Add method...
Add: "<Dirname>"
At index: "0"
Backwards
Apply to: "name"

2) Remove method...
Remove count: "."
Starting at: "]"
Apply to "Name and extension"


12/05-21 13:13
#3 : 12/05-21 17:50
Juan Pablo
Juan Pablo
Posts: 2
Reply to #2:

Excellent!!
In reality I wanted to add the date to the beginning of the existing file name, but I could do it with your the help. I just added another method Add.
Thks!!


12/05-21 17:50