Unable to write Metadata with double quote, slash and asteriks

Started by gunasilan, October 29, 2014, 11:57:26 PM

Previous topic - Next topic

gunasilan

exiftool  "-Description=5902455501949_XXXX Basics 20" Tool Box" "C:\Production Art\Test.ai"
Above code is used to write description. Its working fine until there was special character in the value. For above example there was double quote in the value. It stores empty value in the description. I tried with -E like this:
exiftool -E "-Description=5902455501949_XXXX Basics 20" Tool Box" "C:\Production Art\Test.ai" but it still same. How do I solve this. Please advice. Thanks.

Hayo Baan

Your example doesn't work because the quote is mismatched, inside the description you'll need to escape it (on Unix/Mac that would be a simple \, but I'm not sure any more that works on Windows). However, with the -E option, you can replace the quote in the description with " I think that will do the trick ;)
Hayo Baan – Photography
Web: www.hayobaan.nl

StarGeek

A backslash should also work  on windows.  I say should because I came across one occasion where it didn't work and couldn't figure out why, but every other time it's worked for me.  -E and " have always worked for me, though.

Slashes and asterisks shouldn't be a problem though.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

gunasilan

exiftool -E "-Description=5902455501949_XXXX Basics 20\" Tool Box" "C:\Production Art\Test.ai"
and
exiftool &quot "-Description=5902455501949_XXXX Basics 20\" Tool Box" "C:\Production Art\Test.ai"
Doesn't work for me. The description is empty. I'm working in Window environment.

Hayo Baan

You misinterpreted the suggestions. Try this:
exiftool -E "-Description=5902455501949_XXXX Basics 20" Tool Box" "C:\Production Art\Test.ai"
this should work  ;)
Hayo Baan – Photography
Web: www.hayobaan.nl

StarGeek

I'm not sure why the first option didn't work, though.  I copy/pasted it, replaced your .AI file with my test jpg (I don't have an .AI file) and it worked for me


c:\>exiftool -E "-Description=5902455501949_XXXX Basics 20\" Tool Box" x:\!temp\Test.jpg
    1 image files updated

c:\>exiftool -description x:\!temp\Test.jpg
Description                     : 5902455501949_XXXX Basics 20" Tool Box


Either way, go with Hayo's suggestion, it should work the best.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

gunasilan

exiftool -E "-Description=5902455501949_XXXX Basics 20" Tool Box" "C:\Production Art\Test.ai"
Works fine for me. Thanks everyone. :)