I have a DOS .bat file that calls exiftool, and it does what I want on a single file ... it copies certain information from a Nikon .nef file in one folder (where the originals are stored) to a .jpg with the same name (except for the .jpg part) in a different (output) folder. Great! Now, I want a program that can do this on every .jpg file in the output folder, copying the info from the related .nef file in the original folder.
Here is my code to perform this task on a single .jpg file. Your suggestions are appreciated.
set export="k:\photos\dsc_4163.jpg"
set origfile="d:\nikon pictures\2008 03 21\dsc_4163.nef"
REM DELETE ALL METADATA FROM FILE
"c:\program files\exiftool\exiftool.exe" -k -all= %export%
REM COPY METADATA FROM NEF FILE
"c:\program files\exiftool\exiftool.exe" -k -TagsFromFile %origfile% -all:all %export%
REM COPY GPS AND IPTC FROM TEMP FILE
"c:\program files\exiftool\exiftool.exe" -k -TagsFromFile %origfile% -gps:all %export%
"c:\program files\exiftool\exiftool.exe" -k -TagsFromFile %export%_original -iptc:all %export%
del %export%_original"
--
Paige
(6)
]
