ExifTool Forum

ExifTool => Newbies => Topic started by: kkaiser on January 31, 2020, 12:21:30 PM

Title: Move image to a new directory based on a tag value
Post by: kkaiser on January 31, 2020, 12:21:30 PM
I may be asking this incorrectly, so please forgive.  :-[
I have 226 directories that I would like to scan, if they have a 'File Type' of "MOV" I want to move it into another directory called 'video'.

exiftool -d /Volumes/TimeMachine/video '-directory< filetype=MOV' -r /Volumes/TimeMachine/flickr/


Will this work?

Title: Re: Move image to a new directory based on a tag value
Post by: Phil Harvey on January 31, 2020, 12:24:46 PM
The -d option is for date/time formatting, and "<" is for copying tag values, so your command won't work.  Try this instead:

exiftool -directory=/Volumes/TimeMachine/video -if '$filetype eq "MOV"' -fast3 -r /Volumes/TimeMachine/flickr/

- Phil
Title: Re: Move image to a new directory based on a tag value
Post by: kkaiser on January 31, 2020, 12:41:39 PM
I'm glad I asked, thank you.