ExifTool Forum

ExifTool => Newbies => Topic started by: unific on July 11, 2019, 06:41:17 PM

Title: Exporting TXT With all data does not save to the folder where the file is
Post by: unific on July 11, 2019, 06:41:17 PM
I'm Trying to export all data to txt with this command
exiftool -a -u -G1 -W+! %f_%e.txt -r D:\Photo
all txt is saved to D:\Photo

When i run this command it works but i want Filename_Ext as filename
exiftool -a -u -G1 -w txt -r

Please can someone help me on the way.

i'm new to Exiftool

Photo are saved
D:\Photo\Year\Month\ Fotoname.jpg



Title: Re: Exporting TXT With all data does not save to the folder where the file is
Post by: StarGeek on July 11, 2019, 06:53:47 PM
You need to add the directory otherwise it will save to the current working directory.  You can use %d to indicate the same directory as the file or explicitly name the directory.

exiftool -a -u -G1 -W+! %d%f_%e.txt -r d:\Photo
will put the txt file in the same directory as the original images.

See the -w (textout) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) and the -W option (https://exiftool.org/exiftool_pod.html#W-FMT--tagOut) for details.
Title: Re: Exporting TXT With all data does not save to the folder where the file is
Post by: unific on July 11, 2019, 07:01:16 PM
Quote from: StarGeek on July 11, 2019, 06:53:47 PM
You need to add the directory otherwise it will save to the current working directory.  You can use %d to indicate the same directory as the file or explicitly name the directory.

exiftool -a -u -G1 -W+! %d%f_%e.txt -r d:\Photo
will put the txt file in the same directory as the original images.

See the -w (textout) option (https://exiftool.org/exiftool_pod.html#w-EXT-or-FMT--textOut) and the -W option (https://exiftool.org/exiftool_pod.html#W-FMT--tagOut) for details.

Thx that did it i was 2 days looking how to do this ..