I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-06-03 13:58:07-07 by pixelpicker
Copying only images from special subfolers...
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:
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:
-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 :)

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

Greetings from
Bette
Direct Responses: 10897 | Write a response
Posted on 2009-06-03 15:37:13-07 by exiftool in response to 10896
Re: Copying only images from special subfolers...
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:

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
Direct Responses: 10900 | Write a response
Posted on 2009-06-03 17:16:33-07 by pixelpicker in response to 10897
Re: Copying only images from special subfolers...

:)))

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 :)

Have a good evening.

Best greetings from
Bette
Direct Responses: Write a response