ExifTool Forum

ExifTool => Newbies => Topic started by: elpabloB on May 02, 2020, 08:32:47 AM

Title: Change a Creation Date based on Parent Folder Name
Post by: elpabloB on May 02, 2020, 08:32:47 AM
So, I have a lot of photo files that I've downloaded from my online sharing platform which is now closing.  I need to set the dates of all the files back to the original upload date, and currently I have managed to use the EXIF data to replace the 'Creation date' for all my camera photos.  However there are a lot of Camera Phone photos that need to be changed as well.

All the files are stored in a parent folder for the day of original upload eg - "2017-05-02" .  Is there a way to automate all files to have their creation date match this format of the date in the folder they are found ?
Title: Re: Change a Creation Date based on Parent Folder Name
Post by: Phil Harvey on May 02, 2020, 09:31:13 AM
The short answer is "yes".  There are lots of posts in here which explain how to do this.  I'm heading out now so I don't have time to explain, but if you still need help I'll check back again when I return.

- Phil
Title: Re: Change a Creation Date based on Parent Folder Name
Post by: StarGeek on May 02, 2020, 10:46:44 AM
More info would be needed to give you an exact command, but here's one example (https://exiftool.org/forum/index.php?topic=7272.0) that will pick YYY-MM-DD out of the directory path.  That command requires that your current directory not be the same as the files, i.e. you can't use a dot or * for the directory path.