Image-ExifTool - -if with DateTimeOriginal

Posted on Fri Apr 20 19:32:09 2007 by pdi
-if with DateTimeOriginal
I am using the exif:DateTimeOriginal tag to rename fotos. Occasionally there are fotos with DateTimeOriginal set to 0000:00:00 00:00:00. In this case I want to rename them using the FileModifyDate tag. Now, when I do

exiftool -if "$exif:DateTimeOriginal eq '0000:00:00 00:00:00'" -r -s -s -s -exif:DateTimeOriginal D +IR

exiftool correctly identifies the fotos. But when I use the same condition in

exiftool -if "$exif:DateTimeOriginal eq '0000:00:00 00:00:00'" -r "-FileName<FileModifyDate" -d "%% +-.1d_%Y%m%d_%H%M%S%%-2c.%%e" "-directory=%d" DIR

exiftool reports ALL fotos as having failed the condition. I work from dos cmd, on w2k, with win executable ver 6.74 or normal 6.79.

I wonder if I'm missing something. Any ideas? Many thanks in advance.
Direct Responses: 4942 | Write a response