Use datetimeoriginal AND comment in rename.

Started by PersonaImaging, July 31, 2016, 05:06:54 PM

Previous topic - Next topic

PersonaImaging

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! 


StarGeek

This would be FAQ 3.  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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

PersonaImaging

Usercomment was indeed just what I was looking for!   

Thanks a bunch!