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?
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 (https://exiftool.org/mistakes.html#M3)).
You could do something like this
exiftool -if "($rating<1)" "-Directory=C:/Path/to/Culls" Directory
del C:/Path/to/Culls/*