Copying only images from special subfolers...

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

Previous topic - Next topic

Archive

[Originally posted by pixelpicker on 2009-06-03 13:58:07-07]

Hello Phil!

I would like to copy images just from subfolders with a special name of a DIR media.

The DIR folder-structure is as folows:
Code:
media
       -1
         -gross
       -2
         -gross
       -3
         -gross

The folders 1, 2 and 3 contain images too, but these ones sould not be copied.

All images in the folders "gross" should be copied to a destination folder media_gross.

I tried up to now:

Code:
-o "J:\media_gross" -r "J:\media\%d\gross\%f.jpg"
but it didn`t work (yes, the %d is for the complete directory, I understand now Smiley

Is there a way to copy images just outof folders gross?

Greetings from

Bette

Archive

[Originally posted by exiftool on 2009-06-03 15:37:13-07]

Hi Bette,

This depends somewhat on the shell globbing, which may
be different in Windows, but the following command may work to
copy the specified files:

Code:
exiftool -o j:\media_gross -r -ext jpg j:\media\*\gross

This would work in Linux or on a Mac, but I can't say for sure
about Windows.  The -r option is only meaningful if a directory
names are specified on the command line, as I have done.  But
I'm not sure you want to go deeper than the gross directory
anyway, so -r may be unnecessary.

- Phil

Archive

[Originally posted by pixelpicker on 2009-06-03 17:16:33-07]



Smiley))

Works perfect!!

I'm on WinXP Professional.

Yes, you're right, I removed the -r option since the gross folders don't have subDirs.

Before I tried it with: -o "J:\media_gross\%f.jpg" "J:\media\17\gross" for each folder with a separate commandline - but this is VERY slow and some work.

So thank you VERY MUCH again for your help, Phil & your elegant programming Smiley

Have a good evening.

Best greetings from

Bette