Correcting date pictures were taken

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
phototaker
Posts: 53
Joined: Fri Oct 17, 2014 1:45 am

Correcting date pictures were taken

Post by phototaker »

I was wondering if there is any way to overcome the nonsense that Windows creates when you import photo's from a camera? I literally have thousands of jpeg files that were 'created' 5 years after the 'file was modified'? As far as I'm concerned the EXIF data from digital cameras should be the most important associated with any photo yet Windows says that the was created when it was imported to your PC.

Thanks in advance
void
Developer
Posts: 16684
Joined: Fri Oct 16, 2009 11:31 pm

Re: Correcting date pictures were taken

Post by void »

I have done this only a couple weeks ago with a powershell script:
$(Get-Item filename.jpg).creationtime=$(Get-Date "mm/dd/yyyy hh:mm am/pm")

I used Everything to generate a powershell script:
  • In Everything, select the files with the wrong creation date.
  • From the Edit menu, under the Advanced menu, click Advanced Copy to folder....
  • Check Regex.
  • Change old format to: ^(.*?)$
  • Change new format to: $(Get-Item \1).creationtime=$(Get-Date "07/24/2017 00:00 am")
  • Copy the new filenames list to the clipboard.
  • Click Cancel.
  • Open notepad: Start -> Run -> Notepad
  • In Notepad, paste the clipboard contents.
  • From the File menu, click Save as...
  • Change Save as type to: All Files (*.*)
  • Save the file on the Desktop as setdates.ps1
  • On the Desktop, right click setdates.ps1 and click Run with Powershell.


https://superuser.com/questions/292630/ ... -on-a-file
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Correcting date pictures were taken

Post by therube »

(You have to be careful to not inadvertently hit the OK button [or Enter].)

Is that going to actually work - if the files are in different directories?
If you run the script from other then the "starting" directory (assuming you're only dealing with a single directory) ?
Isn't \1 going to copy the file name rather then the full name to the clipboard?

You can copy the Full Name from within Everything, but not from Renamer?
You might be able to generate the Full Name with Renamer?
void
Developer
Posts: 16684
Joined: Fri Oct 16, 2009 11:31 pm

Re: Correcting date pictures were taken

Post by void »

Ah yes, sorry, it should be the advanced copy to folder:
  • From the Edit menu, under the Advanced menu, click Advanced Copy to folder....
I've edited my post.
Stamimail
Posts: 1122
Joined: Sat Aug 31, 2013 9:05 pm

Re: Correcting date pictures were taken

Post by Stamimail »

Try softwares:
BulkFileChanger
NewFileTime
FFTools - File & Folder Tools
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Correcting date pictures were taken

Post by NotNull »

@void: And just when I thought "this is way off topic for the Everything > Support forum", you managed to bring it back on topic! :-o


A quick search on the Internet (query: exif file date time windows) returns a dozen of utilities that can handle this.
Post Reply