ExifTool Forum

ExifTool => Newbies => Topic started by: petr515 on January 07, 2021, 08:39:31 AM

Title: How to change the output file name with -w
Post by: petr515 on January 07, 2021, 08:39:31 AM
Hi, i have this command: exiftool -a -u -g1 -w .txt

How can I change the output file name from: <filename>.txt to something like "output.txt" ?
Title: Re: How to change the output file name with -w
Post by: Phil Harvey on January 07, 2021, 08:46:02 AM
Two ways:

exifool -a -u -g1 -w %0foutput.txt

or

exiftool -a -u -g1 -W+ output.txt

(but the first way is more efficient)

- Phil

Edit: Wait.  Are you specifying multiple input files?  If so, then you need to use the second command.
Title: Re: How to change the output file name with -w
Post by: petr515 on January 07, 2021, 09:09:27 AM
Thanks you !