Jump to content

Swap Date Taken and Date Created for File Properties


Recommended Posts

I had a hdd that crashed and upon receiving a replacement from my online backup, the Date Created, Date Modified, and Date Accessed were set to the date of the copy, and not the actual creation date.  I did find that for my .jpgs, under Details, there is a Date Taken field that has the correct data.  Can AutoIt be used to find the Date Taken, and then Set the Date Created to the value in Date Taken?  I've never seen any of these kinds of functions in AutoIt.  Thanks!

Link to comment
Share on other sites

Checkout the _GDIPlus_ImageGetPropertyIdList() and _GDIPlus_ImageGetPropertyItem() functions in the help file.  I believe property 306 is DateTaken.

 

I think the FileSetTime() function will set the Date Created.

Edited by TheXman
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...