ouput path and filename

Started by harry, May 23, 2020, 07:46:31 AM

Previous topic - Next topic

harry

Exiftools, a zillion possibliities! I am sure it is very simple but i can't find it.
I have 100.000 photo's and have to delete a lot based on image size

Is it possible to include the directory when a make a file with filename and imagewidth?
This is what i do:

I want all imagesize form all the jpg files in all directories.

exiftool -p   "$filename; $imagewidth" -q -f  >d:\test\all1.txt  -r  d:\photo\*

All help appriciated ;)

thaks

harry

Oke, maybe my brains dissolve with my last cup op coffe but it seems too simple;

$directory is the solution.

Because my testdir had no subdirs exiftools only outputted a dot (.) which of course is the source dir.

StarGeek

Another option would be the FilePath tag.  That will output the absolute directory and filename, not the relative directory.
* 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).