Re: problem escaping in exiftool using exec() macro command on Windows

Posted by Bill Christens-Barry-2 on
URL: http://imagej.273.s1.nabble.com/problem-escaping-in-exiftool-using-exec-macro-command-on-Windows-tp5023850p5023852.html

Hi Gabriel,

Thanks for your thoughts and suggestions on this. Pulling out my hair I've tried a variety of seemingly rational and sometimes random numbers and combinations of the usual escape characters, none of which has solved this problem. Single and multiple \ and ^ characters seem not to work, and I'll try your further suggestion using multiple backslashes with a ^. In some cases it's as though the escape characters have a persistent effect through the remainder of the macro command, evidence of which is that the intended following path argument (beginning with "C:/) is pointed to in the error message. But I've confirmed through testing that this alone isn't the problem, as I can read a tag using the same absolute paths.

I've read online (e.g. https://stackoverflow.com/questions/42032953/which-symbol-is-escape-character-in-cmd) that cmd is not consistent across all cases and that there is the further issue of how escaping is handled further downstream. I suppose it may be time for me to look into PowerShell.

Thanks and be well,

Bill

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html