ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Marc on August 22, 2011, 12:39:44 PM

Title: Copy File based on Ranking
Post by: Marc on August 22, 2011, 12:39:44 PM
Hi,

Is there a commandline flag to use for copying the files based on the 'Ranking-tag'
If not, is there a way to export al the rankings of all files to a file. Than I can create a little program to import it, and create a bat-file to copy the files.
I have all my photo's on one server, and wants to copy  them to an other server (that share the photos on by network) but only with a ranking more than 2 stars. I want to keep al the photo's a took on one server, and want to share only the 'good' ones...

Thanks
Marc
Title: Re: Copy File based on Ranking
Post by: Phil Harvey on August 22, 2011, 12:46:20 PM
Yes. First you need to determine what tag name your "ranking" uses.

Here is an example command that assumes the tag name is "Rating", and copies all files from directory c:\source\directory with a rating of 2 or higher to another directory:

exiftool "c:\source\directory" -if "$rating >= 2" -o "c:\destination\directory"

(use double quotes as above in Windows, or single quotes on Mac or Linux)

- Phil
Title: Re: Copy File based on Ranking
Post by: Marc on August 22, 2011, 01:04:10 PM
Phil,

Thanks for the quick reply
I will try it.

Regards,
Marc