Hello,
I want to fix my whatsapp dates. they go like this "IMG-20151028-WA0000.jpg"
used this command here:
exiftool "-alldates<filename" /path/to/dir
the thing is it only changes the date taken for the pics. can this command be modified to also add the same date from file name so it changes it for "date modified" and "date created" as well?
Thanks!
Quote from: mak on December 21, 2021, 11:58:03 PM
the thing is it only changes the date taken for the pics. can this command be modified to also add the same date from file name so it changes it for "date modified" and "date created" as well?
The
AllDates shortcut writes the
EXIF:CreateDate and
EXIF:ModifyDate as will as the
EXIF:DateTimeOriginal] tag. But I'm guessing what you really want to write is the file system timestamps. To write to those, you would replace
AllDates with
FileCreateDate/
FileModifyDate. You can do all of them at once with
exiftool "-AllDates<Filename" "-FileCreateDate<Filename" "-FileModifyDate<Filename" /path/to/files/But in the GUI, you would drop the "exiftool" and path part when setting up the exiftool direct box.
Thanks for quick reply.
I ran the command and it changed the date taken and date modified but there was no affect on date created.
any ideas?
I am checking the changes in w7 windows explorer properties box under details.
What is the output of this command on one of the files, and what does Windows Explorer say?:
exiftool -time:all -G1 -a FILE
- Phil
Please check attachment.
first time running command was for original pic. second time was for updated pic with exiftool.
all dates get updated except for "file creation date/time". I am not sure if that is any problem.
That's very strange. The FileAccessDate will get changed ever time the file is read, but the FileCreateDate should have been changed.
Here's how it works on my system
C:\>exiftool -time:all -g1 -a -s Y:\!temp\bbbb\img-20151204-wa0002.jpg
---- System ----
FileModifyDate : 2021:12:22 07:51:44-08:00
FileAccessDate : 2021:12:22 07:51:44-08:00
FileCreateDate : 2021:12:22 07:51:44-08:00
C:\>exiftool -P -overwrite_original "-AllDates<Filename" "-FileCreateDate<Filename" "-FileModifyDate<Filename" Y:\!temp\bbbb\img-20151204-wa0002.jpg
1 image files updated
C:\>exiftool -time:all -G1 -a -s Y:\!temp\bbbb\img-20151204-wa0002.jpg
[System] FileModifyDate : 2015:12:04 00:02:00-08:00
[System] FileAccessDate : 2021:12:22 07:56:19-08:00
[System] FileCreateDate : 2015:12:04 00:02:00-08:00
[IFD0] ModifyDate : 2015:12:04 00:02:00
[ExifIFD] DateTimeOriginal : 2015:12:04 00:02:00
[ExifIFD] CreateDate : 2015:12:04 00:02:00
That is odd. Your FileCreateDate is behaving like StarGeek's FileAccessDate, and visa versa.
A couple of questions:
1. What version of ExifTool are you using?
2. What type of filesystem is the file on?
- Phil
Exiftool version is 12.3.8.0
Filesystem is NTFS
OK, thanks. Nothing unusual there. I can't explain what you are seeing.
- Phil