Taking some folder names into file names

Advanced Renamer forum
#1 : 13/06-19 06:03
ucok66
ucok66
Posts: 3
Hai, I tried to change the name file using this method:
add: <DirName>_

But it's ended like this:
folder name: 2018_08_05_08_41_08_example
file name: shadow.jpg
result: 2018_08_05_08_41_08_example_shadow.jpg

Can I have the result something like this?
2018_08_05_08_41_08_shadow.jpg

Any advice would be nice, thanks


13/06-19 06:03
#2 : 13/06-19 07:38
David Lee
David Lee
Posts: 261
Try:

Add: <DirName>/

followed by:

Replace: [a-z]*/
With: nothing
Use regular expressions


13/06-19 07:38
#3 : 13/06-19 14:24
ucok66
ucok66
Posts: 3
Reply to #2:
Uh.. This is working for an alphabet name that I want to remove, but what if a non-alphabet in the way?

example:
folder1 name: 2019_06_05_ex -ample- [SFW]_02
folder1's file1 name: exam_ple_01
folder1's file2 name: exam_ple_03
result:
2019_06_05_exam_ple_01
2019_06_05_exam_ple_03

folder2 name: 2019_01_26_13_34_59_exam_ple[SFW](5pics)
folder2's file1 name: example07
folder2's file2 name: example09
result:
2019_01_26_13_34_59_example07
2019_01_26_13_34_59_example09

any workaround?


13/06-19 14:24
#4 : 13/06-19 17:25
David Lee
David Lee
Posts: 261
Reply to #3:
It would be helpful if you took the time to properly define your problem in the first place. It seems that what you want to do is to prefix each filename with the date and time only from the corresponding folder name.

Add: <DirName>/

followed by:

Replace: ([0-9_]*).*/
With: \1
Use regular expressions

All you need to know is in the User Guide: www.advancedrenamer.com/user_guide/gettingstarted


13/06-19 17:25