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