ExifTool Forum

ExifTool => Newbies => Topic started by: bartek on March 02, 2024, 02:42:13 PM

Title: How to remove single apostrophe ' from Description tag?
Post by: bartek on March 02, 2024, 02:42:13 PM
Hi I'm trying to remove ' (single apostrophe) from Description tag, but can't get it to work.

Can you please help?

Thanks in advance.

Btw. I'm on Windows 11 if that matters ;)
Title: Re: How to remove single apostrophe ' from Description tag?
Post by: Phil Harvey on March 02, 2024, 03:07:28 PM
Try this (in a CMD shell):

exiftool "-description<${description;s/'//g}" FILE

- Phil
Title: Re: How to remove single apostrophe ' from Description tag?
Post by: bartek on March 04, 2024, 03:16:02 AM
Hello Phil, Thanks for your reply. The command works perfectly fine on my Windows 10 pc, but on another computer with Windows 11 I get this message:

Warning: No writable tags set from bfom.jpg

Why is that?
Title: Re: How to remove single apostrophe ' from Description tag?
Post by: StarGeek on March 04, 2024, 03:36:20 PM
Are you using CMD or Powershell?  The above command is for CMD.  Powershell has different quoting rules, which you should see by the different color highlighting in the command.
Title: Re: How to remove single apostrophe ' from Description tag?
Post by: bartek on March 05, 2024, 12:33:09 AM
Quote from: StarGeek on March 04, 2024, 03:36:20 PMAre you using CMD or Powershell?  The above command is for CMD.  Powershell has different quoting rules, which you should see by the different color highlighting in the command.
oh, you're right! Thanks a lot, I didn't realize there's a difference. On cmd it works as it should :)