News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Exporting TXT With all data does not save to the folder where the file is

Started by unific, July 11, 2019, 06:41:17 PM

Previous topic - Next topic

unific

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




StarGeek

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 and the -W option for details.
* 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).

unific

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 and the -W option for details.

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