ExifTool Forum

ExifTool => Newbies => Topic started by: xian on February 12, 2012, 05:44:14 PM

Title: copying DateTime to DateTimeOriginal tag
Post by: xian on February 12, 2012, 05:44:14 PM
Hi!

I'd like to overwrite the DateTimeOriginal and DateTimeDigitized tags by the value of DateTime in files in a directory. How can I do that?

Thank you,
K
Title: Re: copying DateTime to DateTimeOriginal tag
Post by: Phil Harvey on February 13, 2012, 07:18:53 AM
Hi K,

The syntax is

exiftool "-DSTTAG<SRCTAG" FILE

Where DSTTAG is the destination tag name, SRCTAG is the source tag name, and FILE is one or more file and/or directory names.

See FAQ number 2 (https://exiftool.org/faq.html#Q2) if you have questions about the tag name.

- Phil
Title: Re: copying DateTime to DateTimeOriginal tag
Post by: xian on February 13, 2012, 05:00:53 PM
Hello Phil,

thanks for the tip.

The command exiftool "-DateTimeOriginal<ModifyDate" "-CreateDate<ModifyDate" "-ModifyDate>FileModifyDate" .
did the trick and updated the messed up tags, as well the date of the files in the current directory.

Great tool.

K.