Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Change EXIF and File dates

Reply
 
Old 09-29-2008   #1 (permalink)
matros


 
 

Change EXIF and File dates

I have few hundreds of *.JPG files given to me. Camera clock was set
up wrong. Instead of 09/27/2008 20:40 PM it shows 12/23/2008 1:29 PM.
I'd like to get a batch to change all File and EXIF date properties.


I need to read "Date/Time Original", subtract 124849 minutes then
change all Data fields (except LastAccessTime)


PS C:\Temp> get-childitem C:\111\CIMG2865.JPG |format-list


Directory: Microsoft.PowerShell.Core\FileSystem::C:\111



Name : CIMG2865.JPG
Length : 4193300
CreationTime : 9/27/2008 12:29:14 PM
LastWriteTime : 9/27/2008 12:29:14 PM
LastAccessTime : 9/27/2008 12:31:24 PM
VersionInfo :



PS C:\Temp> C:\util\Exif\exiftool.exe -a -u -g1 C:\111\CIMG2865.JPG
---- ExifTool ----
ExifTool Version Number : 7.36
---- File ----
File Name : CIMG2865.JPG
Directory : C:\111
File Size : 4 MB
File Modification Date/Time : 2008:09:27 12:29:14
Modify Date : 2008:12:23 13:29:23
Date/Time Original : 2008:12:23 13:29:23
Create Date : 2008:12:23 13:29:23
....


Did anyone have such batch?
Thank you
Matros

My System SpecsSystem Spec
Old 10-02-2008   #2 (permalink)
Joel (Jaykul) Bennett


 
 

Re: Change EXIF and File dates

I wrote this up earlier, and I thought I'd sent it to the list ... I'm
not sure if the example (commented out) in this script will work for
CHANGING exif values, but this script *does* work for FETCHING the
info: http://www.poshcode.org/617

--
Joel "Jaykul" Bennett



mat...@xxxxxx wrote:
Quote:

> I have few hundreds of *.JPG files given to me. Camera clock was set
> up wrong. Instead of 09/27/2008 20:40 PM it shows 12/23/2008 1:29 PM.
> I'd like to get a batch to change all File and EXIF date properties.
>
>
> I need to read "Date/Time Original", subtract 124849 minutes then
> change all Data fields (except LastAccessTime)
>
>
> PS C:\Temp> get-childitem C:\111\CIMG2865.JPG |format-list
>
>
> Directory: Microsoft.PowerShell.Core\FileSystem::C:\111
>
>
>
> Name : CIMG2865.JPG
> Length : 4193300
> CreationTime : 9/27/2008 12:29:14 PM
> LastWriteTime : 9/27/2008 12:29:14 PM
> LastAccessTime : 9/27/2008 12:31:24 PM
> VersionInfo :
>
>
>
> PS C:\Temp> C:\util\Exif\exiftool.exe -a -u -g1 C:\111\CIMG2865.JPG
> ---- ExifTool ----
> ExifTool Version Number : 7.36
> ---- File ----
> File Name : CIMG2865.JPG
> Directory : C:\111
> File Size : 4 MB
> File Modification Date/Time : 2008:09:27 12:29:14
> Modify Date : 2008:12:23 13:29:23
> Date/Time Original : 2008:12:23 13:29:23
> Create Date : 2008:12:23 13:29:23
> ...
>
>
> Did anyone have such batch?
> Thank you
> Matros
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Last Modified file dates Vista General
File Modification Dates in IExpress package VB Script
Need help with pulling dates, ACL permissions into a CSV file PowerShell
file dates Vista performance & maintenance
File Open window lacks file dates Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46