The system cannot find the file specified

Started by lfcnutter, January 09, 2018, 09:47:50 AM

Previous topic - Next topic

lfcnutter

Hi,
I'm new to his forum so please bear with me if my question seems trivial.
I have several thousand images some with create dates some without and some others with datetimeoriginal and some without.
I am trying to set the datetimeoriginal to the create date where there's incorrect data
my command line is:
exiftool "Y:\Our PhotosSlideshowsSoundTracks\Photos\Miscellaneous\Cats\Image_00004157.jpg" -ExifIFD:datetimeoriginal<ExifIFD:createdate -if "$exifIFD:datetimeoriginal eq '0000:01:01 00:00:00'"
but this results in the error as in the subject of this post.
I know that the image does exist and that the data is available.
I have posted image of the command window showing more details.
can anyone help me here please?

busywait

I suppose the < looks like a file redirection operator unless you put it inside quotes, so this works for me:

C:\EXIF>exiftool  "-ExifIFD:datetimeoriginal<ExifIFD:createdate" -if "${exifIFD:datetimeoriginal} eq '0000:01:01 00:00:00'" "tester.jpg"
    1 files failed condition


lfcnutter

That's a quick and effective response
thank you so much