source and destination directory ...cant figure it out

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

Previous topic - Next topic

Archive

[Originally posted by cybertekguy on 2008-01-02 19:53:19-08]

Hello

I'm working with a CF card and my destination directory which is G:\Flashcard.

My CF card is at I:\DCIM\XXX dependent on which camera I used.

in this case the command is this and works fine.
The problem is that my other camera uses i:\DCIM\123Canon\

exiftool -overwrite_original -tagsfromfile i:\DCIM\100eos1d\%%f.CR2 -r -ext JPG g:\flashcard

in this case i'm previewing the JPG images from RAW to my G:\Flashdrive which is on my hard disk.

I want to avoid CD to directory because this command is part of another 10 commands.

I used to copy the RAW images to G:\Flashcard and only then run the extraction but this taking too long since some of my shots can add to hundreds on one card.

this is what i'm using now

exiftool -r -o dummy/ -directory=g:\flashcard/ i:\dcim -ext cr2

exiftool "-DateTimeOriginal&gtFileModifyDate" g:\flashcard

exiftool -b -PreviewImage -w %%d%%f.jpg -ext cr2 g:\flashcard

exiftool -overwrite_original -tagsfromfile %%d%%f.CR2 -r -ext JPG g:\flashcard

del g:\flashcard\*.cr2

g:\flashcard  -if "$SerialNumber eq '1821003530'"

exiftool "-filename&lt350D_F${Aperture}_${FocalLength}_Iso${ISO}_Img${FileNumber}.%%e"

g:\flashcard  -if "$SerialNumber eq '2420708164'"

exiftool "-filename&lt1DMK2N_F${Aperture}_${FocalLength}_Iso${ISO}_Img%%-4f.%%e" g:\flashcard  -if "$SerialNumber eq '417146'"

start g:\flashcard

Steve

Archive

[Originally posted by exiftool on 2008-01-03 14:07:49-08]

Assuming that the images on g:\flashcard aren't in subdirectories, the
following command should do what you want.  Basically, this command
is entered as if you are processing the CR2 images, then the -srcfile
option is used to process the JPEG images instead:

Code:
exiftool -overwrite_original -tagsfromfile @ -r -ext CR2 i:\DCIM -srcfile g:\flashcard\%f.jpg

But things get a bit more complex if the images are in subdirectories
inside g:\flashcard because then you would have to extract the
appropriate part of the path using a srcfile something like
"g:\flashcard\%.7d\%f.jpg" instead.

I hope this helps.

- Phil