VBScript & DNG Ratings

Started by serichard1974, December 12, 2017, 08:08:08 PM

Previous topic - Next topic

serichard1974

Ok, so I'm a photographer by trade, and what I want to do is parse a folder full of DNG files and take any files with a rating of 0 or none and delete them. In my culling process I rate all of the images and the 1-5 are keepers with files with no ratings being trash files at the end of the process. I have other utilities I have written in VBScript to parse through the folders and subfolders doing as instructed, but when it comes to making use of the rating I am unable.

I currently have it figured out to this commandline:

exiftool -rating -s3 (filename), but as this is not an errorcode or return code I am having trouble capturing it and using it. are there any VBScript gurus out there who can help me wrap this up so that I can then put it into my routine?

StarGeek

I would use exiftool to move all the culls to a seperate directory and then delete them.  If you run exiftool on every single file, your script will be very slow (see common mistake #3).

You could do something like this
exiftool -if "($rating<1)" "-Directory=C:/Path/to/Culls" Directory
del C:/Path/to/Culls/*
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype