ExifTool Forum

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

Title: exiftool -w and -d renaming question
Post by: Archive on May 12, 2010, 08:54:17 AM
[Originally posted by pauljsolomon on 2008-03-23 02:28:08-07]

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.
Title: Re: exiftool -w and -d renaming question
Post by: Archive on May 12, 2010, 08:54:17 AM
[Originally posted by exiftool on 2008-03-23 10:52:38-07]

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
Title: Re: exiftool -w and -d renaming question
Post by: Archive on May 12, 2010, 08:54:17 AM
[Originally posted by exiftool on 2008-03-25 12:44:21-07]

Exiftool 7.22 (just released) adds a new modifier ('n') for %c that
does what you want:

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


- Phil