For Each JPG in folder --- Set "Created"-time from "Last write"-time
You can use PowerShell for that.
(First have a backup)
I will do it step by step for the learning effect:
Step1
Launch PoSh and change to your folder.
Step2
List the file(s) with Get-ChildItem and utilize Get-Member to see the object properties
(I have added
select -First 1| because it is enough to see that info once only)
Get-ChildItem *.jpg |
select -First 1 | Get-Member
(Short: ls *.jpg|gm)
You will see among others
CreationTime Property datetime CreationTime {get;set;}
LastAccessTime Property datetime LastAccessTime {get;set;}
LastWriteTime Property datetime LastWriteTime {get;set;}
Step3
Now lets see what that properties will get us
Get-ChildItem *.jpg | ForEach-Object{$_.CreationTime
; $_.LastWriteTime}
Donnerstag, 20. April 2017 16:25:27
Mittwoch, 19. Oktober 2005 01:18:56
Step4
Set Creation time from LastWriteTime
Get-ChildItem *.jpg | ForEach-Object{$_.CreationTime
= $_.LastWriteTime}
Step5
Test, like in Step3
Get-ChildItem *.jpg | ForEach-Object{$_.CreationTime
; $_.LastWriteTime}
Mittwoch, 19. Oktober 2005 01:18:56
Mittwoch, 19. Oktober 2005 01:18:56
For you it's enough to perform Step4.
In short syntax:
dir *.jpg | %{$_.CreationTime = $_.LastWriteTime}
Or work on the first few only for testing purpose:
dir *.jpg |
select -First 3| %{$_.CreationTime = $_.LastWriteTime}
Use '-Recurse' to work in sub folders too:
dir *.jpg
-Recurse | %{$_.CreationTime = $_.LastWriteTime}
HTH?
GCI is short for 'Get-ChildItem'
DIR and LS are aliases for 'Get-ChildItem'
.