ZTree.com  | ZEN  | About...  

 Index   Back

[Bug] Sorting jpeg files by creation date - Complementary tips   [Bug]

By: John Clark       
Date: Jul 04,2020 at 10:40
In Response to: [Bug] Sorting jpeg files by creation date - Complementary tips (Laurent Duchastel)

> Not directly related to your issue but I got many pictures which
> filedate weren't the one taken so I developped a series of F9 script
> using external utility jhead. Might be usefulĀ ?
>
> Below are 6 F9's scripts. You can customize to your taste.
>
>
> ::- Jhead set date to exif | Date+Name
> :: Free utility at https://www.sentex.ca/~mwandel/jhead/
>
> CD /D "#ZTTools\Jhead\"
> jhead.exe -ft -autorot -n%%%Y-%%%m-%%%%d-%%%H-%%%M-%%%S_%%%f
> "%2:%3\*.JPG"
> pause
>
>
> ::- Jhead set date to exif | Date+Name (Alt YYYYMMDD_HHMMSS)
> CD /D "#ZTTools\Jhead\"
> jhead.exe -ft -autorot -n%%%Y%%%m%%%%d_%%%H%%%M%%%S_%%%f
> "%2:%3\*.JPG"
> pause
>
>
> ::- Jhead set date to exif | Name
> CD /D "#ZTTools\Jhead\"
> jhead.exe -ft -autorot "%2:%3\*.JPG"
> pause
>
>
> ::- Jhead set date to exif | Date
> CD /D "#ZTTools\Jhead\"
> jhead.exe -ft -autorot -n%%%Y-%%%m-%%%%d-%%%H-%%%M-%%%S
> "%2:%3\*.JPG"
> pause
>
>
> ::- Jhead set date to exif | Date
> CD /D "#ZTTools\Jhead\"
> jhead.exe -dsft -autorot -n%%%Y-%%%m-%%%%d-%%%H-%%%M-%%%S
> "%2:%3\*.JPG"
> pause
>
>
> ::- Jhead change exif +1hour
> CD /D "#ZTTools\Jhead\"
> jhead.exe -ta+1:00 "%2:%3\*.JPG"
> pause
>
>

Thanks. Got it working.
I've had to move a few cobwebs out of the way, been a long while since I've written batch files.

116 views      
 

Messages in this Thread

 
95,075 Postings in 11,986 Threads, 350 registered users, 90 users online (0 registered, 90 guests)
Index | Admin contact |   Forum Time: Aug 13, 2020 - 1:04 am EDT  |  Hits:33,077,855  (1,777 Today )
RSS Feed