Author Topic: Copy Windows Comment to Title Tag  (Read 1688 times)

noelH

  • Newbie
  • *
  • Posts: 3
Copy Windows Comment to Title Tag
« on: March 29, 2012, 03:28:34 AM »
Hi to all
I have Windows Vista :o and some of my Pics have text in the Title tag (which has come from the Windows Photo Gallery- Caption) and then there is other text in the Comment tag. I am wishing to join the to together and have both the same. it would be copy the text from the title tag and add it to the Comment tag, then clear the title tag, and replicate the comment text into the Title tag. I have worked out how to copy the from one tag to the next, but not the joining of the two tags together.
In advance thanks for any help and guidance.
From Australia, and a rain soaked Sydney

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14879
    • ExifTool Home Page
Re: Copy Windows Comment to Title Tag
« Reply #1 on: March 29, 2012, 07:28:54 AM »
Use this command to do what you want:

exiftool "-title<$comment $title" "-comment<$comment $title" FILE

Where the FILE is the file name.  (Mac/Linux users use single quotes instead of double in commands like this)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).