How to change the output file name with -w

Started by petr515, January 07, 2021, 08:39:31 AM

Previous topic - Next topic

petr515

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" ?

Phil Harvey

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