Great tool, I've gotten a lot of what I wanted done with it, but stuck with one problem. Bunch of files of pictures that were scanned. Got the filenames into a YYYY_MM_DD_xxxxxA.jpg fashion, with the date I believe they were taken as the beginning, and the xxxxx portion being the sequence number from the scanner.
So, first I used ExifTool to add metadata to the files for "alldates" taken from the filenames. Beautiful. Then I got greedy and wanted the file creation date to match the date taken. I also got that to work, as long as xxxxx>00599, but after that I got errors because the minute value that ExifTool had put in the date was greater than 59.
So, I've gotten lost in trying to find how to change just the minutes on the dates, hopefully just for the ones that are problems.
Oh, this is in Windows.
Thanks.
You should probably add a bogus time instead of using the sequence number. Maybe something like this:
exiftool "-alldates<${filename;$_=substr($_,0,10)} 00:00:00" "-filemodifydate<${filename;$_=substr($_,0,10)} 00:00:00" "-filecreatedate<${filename;$_=substr($_,0,10)} 00:00:00" DIR
- Phil
Thanks, that worked perfectly.