ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: pedroparamo on December 19, 2012, 01:31:29 PM

Title: setting metadata of all cr2 files in a specified directory
Post by: pedroparamo on December 19, 2012, 01:31:29 PM
I'm trying to set the all the tags except the creation date from a jpeg file to all the cr2 (raw) files in a directory.

I'm trying:

exiftool -tagsfromfile %d%33333-01.jpg -r -ext CR2 POSIXpath

where 33333-01.jpg is the name of the jpg and the POSIXpath is the path to my directory (folder) that contain the cr2 files, but I get a file not found error.  How do I specify the proper FOLDER?

Thanks.

Pedro
Title: Re: setting metadata of all cr2 files in a specified directory
Post by: Phil Harvey on December 19, 2012, 02:21:10 PM
Hi Pedro,

This sounds very dangerous to me.  You could quite easily write some tags (like Make, Model and Makernotes) that would make the CR2 files unreadable by some software.

I would advise against writing en-mass to a RAW file like this.  Instead, specify only the tags that you want to move, after the -tagsfromfile option on the command line.

- Phil
Title: Re: setting metadata of all cr2 files in a specified directory
Post by: pedroparamo on December 19, 2012, 03:17:59 PM
OK, I'll specify only the tags I want but how do I specify the directory of the cr2 files if they are in another folder?

Thanks.

Pedro
Title: Re: setting metadata of all cr2 files in a specified directory
Post by: Phil Harvey on December 20, 2012, 07:32:46 AM
The %d in your -tagsfromfile argument represents the directory of the target files.  Replace this with the actual directory name if they are in a different directory.  Also, I just notice you have an extra "%" that shouldn't be there after the %d.  Just the file name alone will do if it is in the current directory.

- Phil