Copy number: leading character

Started by Archive, May 12, 2010, 08:54:01 AM

Previous topic - Next topic

Archive

[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

Archive

[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
https://exiftool.org/Image-ExifTool-6.80.tar.gz" target="_blank">6.80 pre-release
with this feature, and it will appear in the official versions when
released.

- Phil

Archive

[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