Page 1 of 1

Date matching question

PostPosted: Fri Sep 28, 2018 10:25 am
by Drifter
Hi guys,

I'm trying to rename files with FileName_July_2018.extension to FileName_201807.extension.

So I have a name match check for customdate (using month_year) then do a rename with pattern name_customdate.extension.
The files match fine, except they come out to be FileName_July_2018_201807.extension.

How do I tell it to rename with pattern of name minus the date that matched, then add the new formatted date behind it?

Re: Date matching question

PostPosted: Fri Sep 28, 2018 11:42 am
by Mr_Noodle
Create another custom attribute to match the part of the name before the date. Then use the two custom attributes together to construct the new name.