Image-ExifTool - need help with a batch file: replace EXIF

Posted on Sun Sep 7 07:29:35 2008 by ppda
need help with a batch file: replace EXIF
Hi everybody,

Would anybody help me with the following. Let us say I have a windows folder C:\...\2008\ where I keep processed files and a subfolder C:\...\2008\originals\, where I keep CR2 Canon files. I want to create a windows *.cmd file that would do the following:

1. Find all TIFF files ending with _LR.TIF in the current folder (for example, IMG_1234_LR.TIF)

2. Find the original CR2 file in the "originals" subfolder by discarding the last 3 characters (IMG_1234.CR2) and copy the full exif info from the CR2 file to the TIFF file

3. Rename the modified TIFF to something else, for example remove "_LR" and replace it with "_X" (IMG_1234_X.TIF).

Here is the reason I need this. LR discards the "maker notes" from Canon files. Some PP applications, like DXO Pro, PTLens, need this info. I want to process a CR2 file with LR, and keep all the EXIF. The processed file will have suffix "_LR". So after LR, I want to have a batch file so that I can simply click on, and it would restore the full EXIF from the original RAW file. The renaming is needed so that each time I do this, only the new files will be treated. Also, I would like this to work from any folder (having an \originals subfolder)

I can do that now with ExifToolGUI file by file, but I would like to automate it.

I did try to do this myself but I got nowhere. Any help would be appreciated. Thank you in advance.

Direct Responses: 8760 | Write a response