Thread

Posted on Sun Mar 23 04:28:08 2008 by pauljsolomon
exiftool -w and -d renaming question
I'm trying to rename files with a unique counter. One way to do this is with the %c formatter for the -d and -w options. Is there any way to make this 1-based instead of zero-based? Below is an excerpt from the docs:

   -w E%-.4c.txt # E-0000.txt, E-0001.txt, E-0002.txt ...

In my case (for the above example), I'd want E-0001.txt, E-0002.txt, etc.

I realize that this is not really the intent of this option, but, does anybody have any ideas how to do this with exiftool?

-paul.
Direct Responses: 7441 | Write a response
Posted on Sun Mar 23 12:52:38 2008 by exiftool in response to 7440
Re: exiftool -w and -d renaming question
Currently there is no way to start numbering from 1 instead of 0. Let me think about this, perhaps this is a feature I can add. - Phil
Direct Responses: 7454 | Write a response
Posted on Tue Mar 25 14:44:21 2008 by exiftool in response to 7441
Re: exiftool -w and -d renaming question
Exiftool 7.22 (just released) adds a new modifier ('n') for %c that does what you want:

   -w F%-.4nc.txt # F-0001.txt, F-0002.txt, F-0003.txt ...

- Phil
Write a response