ExifTool Forum

ExifTool => Newbies => Topic started by: ArjayEl on November 20, 2018, 12:37:21 AM

Title: Write Original Date Created back to file after transfer
Post by: ArjayEl on November 20, 2018, 12:37:21 AM
I have read a number of posts but I still cannot figure out if I can do this. When I copy files in Windows, Date Created becomes the same date as the date the file was copied. If I check the metadata with ExifTool, the original date is listed as CreatedDate.

Can I use Exiftool to reset the listed Date Created from the new copy date to the original created date shown in the metadata. Any help appreciated, thanks!
Title: Re: Write Original Date Created back to file after transfer
Post by: Phil Harvey on November 20, 2018, 07:08:16 AM
Yes.  First you need to determine what tag you want to copy.  Run this command:

exiftool -time:all -s FILE

Then, assuming you want to set FileCreateDate from DateTimeOriginal, the command is this:

exiftool "-filecreatedate<datetimeoriginal" FILE

Where FILE may be one or more file and/or directory names.

- Phil
Title: Re: Write Original Date Created back to file after transfer
Post by: ArjayEl on November 20, 2018, 09:27:05 AM
Thanks Phil, I didn't quite understand what i was doing in my first attempts, this cleared it up. Much appreciated.