Copying from a single folder to a tree

Started by Archive, May 12, 2010, 08:54:34 AM

Previous topic - Next topic

Archive

[Originally posted by bceugene on 2009-04-24 04:34:23-07]

Hi Phil,

A question:

Scenario

You have a directory structure with a top level folder called tif. It has sub dirs called sub1, sub2, sub3. All the subs have tif files with no keywords or  captions

You have another top level folder called jpeg. It has jpegs that have been aggregated and contains all the same file prefixes as all of the tif folders put together. In other words it has 500 files in one folder, derivative of the 500 files spread across many folders in the tif folder structures

Oddly, in this case, the jpeg that are all in one folder have keywords and captions, but the tif spread across many folders dont.

The question is, is it possible to copy kw and captions from the single jpeg folder and apply them to the whole hierarchy of tiffs, having exif tools look through the subfolders.

Hope that makes sense

Archive

[Originally posted by exiftool on 2009-04-24 11:07:45-07]

yes. This is done using -tagsfromfile with
a filename something like c:/jpgdir/%f.jpg
You will also want to use the -r option. - Phil

Archive

[Originally posted by bceugene on 2009-04-24 17:32:35-07]

thanks this worked, cmd looks like this

exiftool -r  -tagsfromfile "d:/123/jpg/%f.jpg" -iptc:caption-abstract -keywords -ext tif "d:/123/tif"

where the tif dir has subdirs

this is very heplpul!