ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: fpefpe on April 22, 2021, 01:17:12 PM

Title: command line options / switches
Post by: fpefpe on April 22, 2021, 01:17:12 PM
Hello --- sorry for a  trivial question, but I must have just missed the switch in the docs --- but  I want to write the output of exiftool to a file  not using  redirection  (>)  I thought there switch was  -o  but that did not work ---  what would be the proper switch? Thanks
Title: Re: command line options / switches
Post by: StarGeek on April 22, 2021, 01:29:52 PM
See the -w (-TextOut) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) for separate output files for each file processed.  See note 2 under that option for a single file for all output.
Title: Re: command line options / switches
Post by: fpefpe on April 22, 2021, 01:59:50 PM
thx for the info
Title: Re: command line options / switches
Post by: fpefpe on April 22, 2021, 02:17:22 PM
hello --- thx for info with note # 2 --- I am running exiftool over a directory and just want to send the output to a file in the temp folder --- I can't seem to get the triggers just right ----  what would be  the syntax  to get the output to foo.txt in the tmp folder (windows) where %temp% is the tmp dir -- thanks

Title: Re: command line options / switches
Post by: Phil Harvey on April 22, 2021, 03:01:44 PM
Try this: -W+! %temp%/foo.txt

- Phil
Title: Re: command line options / switches
Post by: fpefpe on April 22, 2021, 03:38:43 PM
thx for that info --- that  was exactly what I  was looking for