Hello,
I'm trying to do batch export of metadata from different directories with different files types to separated metadata files (for each graphics file one <full name graphics file with extension>.exf file with all available metadata from graphics file).
On the begining i have directory structure like this:
Katalog: C:\temp2\test files
2013-05-15 15:35 <DIR> .
2013-05-15 15:35 <DIR> ..
2013-05-15 15:41 <DIR> DjVu
2013-05-15 15:41 <DIR> Internetowe
2013-05-15 15:42 <DIR> Merytoryczne
2013-05-15 15:42 <DIR> Referencyjne
2013-05-15 15:42 <DIR> TIFF_Druk
In each directory i have some specific files:
Katalog: C:\temp2\test files
DjVu - djvu files
Internetowe - small jpg's - Thumbnail
Merytoryczne - big jpg's
Referencyjne - source files (dng, cr2 with xmp, fff, tif)
TIFF_Druk - tif's
In that case i'm trying to use for each directory:
for /F %i in ( 'dir /B *') do exiftool -lang pl %i > %i.exf
Problem is that this method is not effective and generating those *.exf files takes too much time (1-2 seconds per file, because for each file i have to run program, read metadata, save it and close the program).
Is there any other way to generate those files with more efficent way (I have 20 000+ files in each directory)?
My example of generated files:
Katalog: C:\temp2\test files\Merytoryczne
2013-05-28 11:58 <DIR> .
2013-05-28 11:58 <DIR> ..
2013-02-13 20:37 9 718 075 MHK-Fs9156-IX-1.jpg
2013-05-15 15:37 7 752 MHK-Fs9156-IX-1.jpg.exf
2013-02-13 20:38 20 549 443 MHK-Fs9254-IX.jpg
2013-05-15 15:37 7 587 MHK-Fs9254-IX.jpg.exf
2013-02-13 20:38 15 805 996 MHK-Fs982-IX.jpg
2013-05-15 15:37 7 685 MHK-Fs982-IX.jpg.exf
6 plik(ów) 46 096 538 bajtów
2 katalog(ów) 34 560 020 480 bajtów wolnych
Regards,
Wojtek
Hi Wojtek,
Try this:
exiftool -lang pl -w %d%f.%e.exf -r .
- Phil
Hello again,
It works perfectly and what was the moste important it is much more faster. (13000 files in 4 minutes)
Thank you for your time and help.
Regards,
Wojtek