#1 2010-12-22 17:14

bss_tech
Member
Registered: 2010-12-22
Posts: 5

Ignore files based on a string in the filename?

Hello,

I'd like to know if it's possible to have ReNamer apply rules to files in a directory as normal, but have it ignore any files that meet certain criteria.

Right now, I'm having ReNamer insert the date meta tag to separate my files by date. I want to be able to have ReNamer ignore any files that have a date in the past in their filename, but rename any files that don't have a date stamp.

So if the date is 12/12/2010,

and I load C:\folder with these files into Renamer:

00A.file
12-10-2010_00A.file

Then ReNamer would rename the files like this:

12-12-2010_00A.file
12-10-2010_00A.file

Normally ReNamer would rename them like this:

12-12-2010_00A.file
12-12-201012-10-2010_00A.file

Can anyone please help me? Thanks so much!

Offline

#2 2010-12-22 23:07

SafetyCar
Senior Member
Registered: 2008-04-28
Posts: 446
Website

Re: Ignore files based on a string in the filename?

From the examples you give, probably renamer would normally rename it with the underscore:
12-12-2010_12-10-2010_00A.file

In that case probably RegEx rule would be de most useful here.
From the name with that format (I mean with the underscore) we can remove the new date (in front) and keep the previous one.

This would be the RegEx rule:
Expression: "^\d+-\d+-\d+_(\d+-\d+-\d+_)"
Replace:     "$1"


If this software has helped you, consider getting your pro version. :)

Offline

#3 2011-01-03 20:18

bss_tech
Member
Registered: 2010-12-22
Posts: 5

Re: Ignore files based on a string in the filename?

Actually, I want Renamer to do nothing to a file name if it detects a date string from yesterday or before in the file name. ReNamer should only perform operations on files that have not already been renamed.

Offline

Board footer

Powered by FluxBB