adding test to filename based on the filenam itsself

Advanced Renamer forum
#1 : 08/10-12 11:56
Erwin Fiten
Erwin Fiten
Posts: 3
Hi,

I have a filename with a fixed layout.

yyyy-mm-dd_FIXED_VAR1_VAR2.ext

now, based on the VAR1 and VAR2 i want to add some text after the date.
exp :

VAR1 = aaa
VAR2= bbb


when the aaa is in the filename, the number 12 has to be added to the filename
when the bbb is in the filename, the number 13 has to be added to the filename
when the ccc is in the filename, the number 14 has to be added to the filename

so in this case it would be :

original filenames :
2012-10-08_FIXED_aaa_bbb.mpg
2012-10-08_FIXED_ccc_aaa.mpg

need to be renamed to :
2012-10-08_12_13_FIXED_aaa_bbb.mpg
2012-10-08_14_13_FIXED_ccc_aaa.mpg

Is there a way to do it?


08/10-12 11:56
#2 : 05/11-12 13:28
Erwin Fiten
Erwin Fiten
Posts: 3
Reply to #1:
No-one an idea?


05/11-12 13:28
#3 : 05/11-12 19:54
Kim Jensen
Kim Jensen
Administrator
Posts: 756
Reply to #2:
It is kinda difficult to do. It is possible by using the Script method, but requires some extra programming skills. This is because the pattern is very irregular.


05/11-12 19:54