ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:01 AM

Title: Copy number: leading character
Post by: Archive on May 12, 2010, 08:54:01 AM
[Originally posted by pdi on 2007-03-10 04:11:50-08]

When renaming files the %c option can append an auto-incremented number to the filename to avoid possible collisions. If %-c is used, the number is prefixed with a leading '-'. However, using %_c doesn't work. Can the leading character be any other than '-'?

Many thanks in advance.

pdi
Title: Re: Copy number: leading character
Post by: Archive on May 12, 2010, 08:54:01 AM
[Originally posted by exiftool on 2007-03-10 13:12:34-08]

This is something I had actually thought about, but using a '_' in the
%c format would not be consistent with my parsing of other format
codes.  However, the '+' sign is not currently used and could be
applied for this purpose (ie. "%+c").  I know it isn't quite as logical as
the '_', but it is more consistent from an interface point of view.

I have updated the
6.80 pre-release
with this feature, and it will appear in the official versions when
released.

- Phil
Title: Re: Copy number: leading character
Post by: Archive on May 12, 2010, 08:54:01 AM
[Originally posted by pdi on 2007-03-10 17:18:11-08]

Phil,

Thank you very much for both your explanation and the new feature.

pdi