Renaming a file according to specific conditions

Advanced Renamer forum
#1 : 03/12-16 14:10
Daniel
Daniel
Posts: 3
Hi guys,
I have a bunch of these files and want to rename them like this:

the original file name: fb_2x3y4z.cfr
where x,y,z are characters that are either 'c', 'h' or 'd'.

if x=y and y=z then the new name will be: fb_mo_2x3y4z.cfr
if x=y and y<>z then the new name will be: fb_hi_2x3y4z.cfr
if x=z and x<>y then the new name will be: fb_md_2x3y4z.cfr
if x<>y and y=z then the new name will be: fb_lo_2x3y4z.cfr
if x<>y and y<>z then the new name will be: fb_rb_2x3y4z.cfr

Can you please help me?


03/12-16 14:10 - edited 03/12-16 14:18
#2 : 03/12-16 21:51
Daniel
Daniel
Posts: 3
Reply to #1:
...or at least give me some hints where to start?


03/12-16 21:51
#3 : 03/12-16 23:35
G. Lambany
G. Lambany
Posts: 187
Reply to #2:
you need to do this in AR script method (javascript)

I'll see what I can do

glambany@gmail.com


03/12-16 23:35 - edited 03/12-16 23:36
#4 : 04/12-16 05:45
G. Lambany
G. Lambany
Posts: 187
Reply to #1:

something like that:

http://pastebin.com/v10Wvkmr


04/12-16 05:45
#5 : 04/12-16 11:54
Daniel
Daniel
Posts: 3
Reply to #4:
thank you very very much!
it needed a few tweeks but it works!
tx again!


04/12-16 11:54