ExifTool Forum

ExifTool => Newbies => Topic started by: PersonaImaging on July 31, 2016, 05:06:54 PM

Title: Use datetimeoriginal AND comment in rename.
Post by: PersonaImaging on July 31, 2016, 05:06:54 PM
Hi!   First, awesome tool is awesome.  Thank you Phil for making it and thanks to everyone on the forum for contributing to the knowledge base for using it! 

On to the newb question. 

I am trying to do something like this....

-FileName<${comment}${datetimeoriginal}" -d "%Y%m%d_%H%M%S.%%e"

However, this approach seems not to work.  The error is: Warning: [minor] Tag 'Comment' not defined.  Which is fine, I was just guessing at what tag might be used there.  Is there a way to do this? 

The end goal is to have a file named  T1C3_20160729_041224.nef   where T1C3 is the comment tag set by the camera. 

Thanks in advance! 

Title: Re: Use datetimeoriginal AND comment in rename.
Post by: StarGeek on July 31, 2016, 05:45:38 PM
This would be FAQ 3 (http://www.exiftool.org/faq.html#Q3).  Run exiftool -a -G1 -s File and look for the tag that has the data you want to add to the filename.  Replace ${comment} in your command with the name of the tag you actually want and it should work.  I'm guessing it might be Usercomment.  If so, you would have ${Usercomment} in your command.
Title: Re: Use datetimeoriginal AND comment in rename.
Post by: PersonaImaging on July 31, 2016, 05:53:31 PM
Usercomment was indeed just what I was looking for!   

Thanks a bunch!