Main Menu

CrLF in Tag values

Started by Curtis, October 21, 2015, 12:37:55 PM

Previous topic - Next topic

Curtis

I'm using -stay_open in my program to send commands to exiftool. 

When I write a tag whose value contains CrLf (or just Cr or Lf) how do I escape them in the command input file?  I tried surrounding the whole value with " " but that did not work.

I'm not using -struct, but would I escape these characters the same as for -struct tag values using '|' ? (that does not seem to work)

Thanks!
Curtis

Phil Harvey

Hi Curtis,

The newline is used as a separator for the -@ option, so you can't send one directly.  However, see FAQ 21 examples b, c and d are ways around this.

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

Curtis

 :)  Thanks Phil that did the trick!