Output to > file in an argument file

Started by johnbeardy, August 10, 2020, 01:51:52 AM

Previous topic - Next topic

johnbeardy

Can I specify an output text file when using an argument file?

I am using argument file with some non-Latin filenames. So my arguments file Instructions.txt looks like this:
R:\Landing zone\MOVs\Video\Хабаровске.MOV
> C:\Users\John\Documents\Output.txt
-n
-g
-J


The command line is like this:
"C:\Users\John\...exiftool.exe" -charset filename=utf8 -@  "C:\Users\John\...Instructions.txt" -k

The Exiftool cmd window shows that the Cyrillic file is being read, but I get "Error - file not found" for the Output file.

Any thoughts?


mnaoumov

John, please try the following

R:\Landing zone\MOVs\Video\Хабаровске.MOV
-charset
filename=utf8
-n
-g
-J
-w
C:\Users\John\Documents\Output%c.txt

StarGeek

Using the > sign to output to a file is a property of the CMD shell and won't work in an argument file because CMD isn't used to process the file. @mnaoumov example using the -w (textout) option is probably the best solution.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

johnbeardy

Thanks both. I've modified slightly to overwrite existing extracts, and put the -charset filename=utf8 lines in the Exiftool command line.

R:\Landing zone\MOVs\Video\Хабаровске.MOV
-n
-g
-J
-w[b]![/b]
C:\Users\John\Documents\jb Video Metadata\Read[b] %f[/b].txt