Thread

Posted on Sat Mar 10 06:11:50 2007 by pdi
Copy number: leading character
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
Direct Responses: 4538 | Write a response
Posted on Sat Mar 10 15:12:34 2007 by exiftool in response to 4537
Re: Copy number: leading character
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
Direct Responses: 4539 | Write a response
Posted on Sat Mar 10 19:18:11 2007 by pdi in response to 4538
Re: Copy number: leading character
Phil,

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

pdi
Write a response