windows and % issue

Started by fpefpe, April 22, 2021, 06:58:03 PM

Previous topic - Next topic

fpefpe

I am running on windows and having an issue with the % char in some of the switches like   -w, i.e. %f  ---

is there an option in the config file to set the % char to something else?  If so, where is the content/syntax of the config file described?  thanks


Phil Harvey

There is no ExifTool option to change the meaning of the % character.

If you are using a Windows batch file, you need to use %%

- 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 ($).

fpefpe

thanks for the info --- yes %% would be the solution, but windows cmd.exe will look for env variables in the form of %foo% and so %%foo will just result in the string as %%foo --- but my issue is that I am not using the std windows shell cmd.exe but jpsoft's  take command.  take, will support the std batch syntax, but an extension (I guess) env var foo can will evaluated using just "%foo" -- so that is the issue with some of the trigger's like %f, take will try to evaluate that and for the most part it just the empty string --- thx for the info --- I will see if there is a "take" work-a-round