Change .EXIF dates with TC using the .EXIF plugin?

English support forum

Moderators: Hacker, petermad, Stefan2, white

yetanotherlogin
Junior Member
Junior Member
Posts: 51
Joined: 2010-03-24, 10:51 UTC

Post by *yetanotherlogin »

Hello,

I need to find a way to rewrite the date/time after copying files from a cheap Canon compact camera that uses MTP. For some reason, and unlike other cameras I had, Windows doesn't preserve the original date/time.

Thankfully, the original infos are still available in the Exif data within files.

I followed the instructions above to use the JPG Comment plug-in (2.3.5.0, 32-bits), but the date/time doesn't change, whether I mark whole directories or a single file:


Image: https://s15.postimg.cc/nzczzt16j/TC.JPG

Any idea what I'm doing wrong ?

Thank you.
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Plugin: tc
Property: writedate
Value: [=jpg-comment.DateTimeOriginal]
yetanotherlogin
Junior Member
Junior Member
Posts: 51
Joined: 2010-03-24, 10:51 UTC

Post by *yetanotherlogin »

Thanks mucho.

Does it mean we no longer need the JPG Comment plug-in because this feature has been merged into TC?

Image: https://s15.postimg.cc/67tkgajcb/Total_Commande.JPG
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Does it mean we no longer need the JPG Comment plug-in because this feature has been merged into TC?
NO - The internal tc-"plugin" provides access to the writedate property, but the value is provided by the jpg-comment plugin - Click on the [+] button and you will see that.
Last edited by petermad on 2018-06-03, 16:28 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
yetanotherlogin
Junior Member
Junior Member
Posts: 51
Joined: 2010-03-24, 10:51 UTC

Post by *yetanotherlogin »

Thanks for the info.
Phred
Senior Member
Senior Member
Posts: 382
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

Re:

Post by *Phred »

solid wrote: 2018-01-29, 14:29 UTC
asdfagasd wrote:Hey Phred,

Which of the programs you recommend can do change many exif dates all at the same time?
You can use XNViewMP. It has EXIF date changing capabilities, to current time, by absolute date/time or by offset of any readable date/time. Also has preview of the new date/time values. Works on single or multiple selected files at once.
.
solid, I had a look at your comment again but I couldn't find anywhere that XnViewMP could change Exif data.
I can see how under Tools, Metadata, IPTC and XMP ...
[UPDATE]
I find that the Change Exif routine is under (in the thumbnail browser) Tools, Change timestamp ..., and seems quite comprehensive, too. Thx.
I notice that Photo Gallery uses a different date compared to the Exif data. I remember reading that P/G data has it's roots in Windows XP Properties and that seems to be its focus with less recognition to Exif data blocks. Maybe it's in its own sidecar database..
Regards, PhredE
torontouser
New Member
New Member
Posts: 1
Joined: 2024-06-18, 01:20 UTC

Re:

Post by *torontouser »

petermad wrote: 2018-01-15, 00:38 UTC 2JimmyTheBroker
I have made this button for you:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Tools\ExifTool\exiftool.exe
-k -P -overwrite_original -charset filename=UTF8 -AllDates<FileModifyDate -ext JPG -@ %UL
%COMMANDER_PATH%\Tools\ExifTool\exiftool.exe
Set all EXIF dates to current file date (write date)


-1
1. download https://sno.phy.queensu.ca/~phil/exiftool/exiftool-10.75.zip and unpack exiftool(-k).exe to %COMMANDER_PATH\Tools\ExifTool\ and rename it to exiftool.exe.
2. Mark all of the green code above (including the -1 in the bottom) and copy it to the ClipBoard (Ctrl+C)
3. Right click on TC's button bar and choose "Paste"

You now have a button that will change the EXIF dates of all the files selected in the active file panel to Windows's file date (write date).
If you mark directories, then they will be scanned one level deep for JPG files which will ALL be changed - so be carefull with marking directories unintentionally.
If you want to process other file types than JPG then remove the parameter: -ext JPG
Thank you so much for this!!! I spent hours this afternoon trying to do this exact thing - auto add filedate to EXIF create date on photos . I created a button using in tC:
exiftool.exe "-AllDates<FileModifyDate" -overwrite_original
Parameters: %P %N
But yours works better as the one I did doesn't handle folders with spaces in it... I wish I had found this thread earlier!
Post Reply