Write Original Date Created back to file after transfer

Started by ArjayEl, November 20, 2018, 12:37:21 AM

Previous topic - Next topic

ArjayEl

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!

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

ArjayEl

Thanks Phil, I didn't quite understand what i was doing in my first attempts, this cleared it up. Much appreciated.