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.
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 ;)
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.
exiftool -E "-Description=5902455501949_XXXX Basics 20\" Tool Box" "C:\Production Art\Test.ai"
and
exiftool " "-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.
You misinterpreted the suggestions. Try this:
exiftool -E "-Description=5902455501949_XXXX Basics 20" Tool Box" "C:\Production Art\Test.ai"
this should work ;)
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.
exiftool -E "-Description=5902455501949_XXXX Basics 20" Tool Box" "C:\Production Art\Test.ai"
Works fine for me. Thanks everyone. :)