Problem with -listx -lang en -execute

Started by user2014, March 20, 2020, 02:43:10 AM

Previous topic - Next topic

user2014

Hi,
using this command "-listx -lang en -execute"
"-lang en" is not working - I get the descriptions in all (!!!) languages - not only english.
On stderr I get

Invalid TAG name: "lang en"
No file specified

Is something wrong with my command?

Executing this command on the command line
"exiftool.exe -listx -lang en" works as expected - I get only english descriptions.

Bye
Erwin

Phil Harvey

Hi Erwin,

This should work, but there could be one of 3 things going wrong here:

1. Exactly how are you submitting this command?  On the command line?  If in an argfile, be sure that each argument is on a separate line.

2. Make sure there are plain ASCII spaces between the arguments if using the command line.  Funny Unicode spaces could cause problems like this.

3. What version of ExifTool are you using?

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

user2014

Hello Phil,

1. exiftool is startet with "-stay_open True -@ -"
    each argument is on a separate  line, eg. "-lang en" is a single line
2. yes, plain ASCII spaces, other commands are working correctly
    to be sure I checked the transfered ASCII values: 45 108 97 110 103 32 101 110 13 10 - I think it's OK
3. Version 11.91

Thanks
Bye
Erwin

Phil Harvey

Hi Erwin,

Quote from: user2014 on March 20, 2020, 11:53:21 AM
    each argument is on a separate  line, eg. "-lang en" is a single line

That is 2 arguments (the -lang option requires an additional argument). So "-lang" and "en" must be on separate lines.

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

user2014

Hello Phil,

that's it !!!
I would have never put it on two lines.
It was always one argument for me.

Thanks again.
Bye
Erwin