Separating files based on file type

Started by dawgsontop, March 17, 2022, 07:43:52 AM

Previous topic - Next topic

dawgsontop

Hey everyone, I'm pretty new to the tool but really enjoying it so far! I was able to sort through nearly 1 TB in about an hour into directories which was mind blowing. I wanted to see if I could go one step further and take out all the video files from the directories and separate them. Right now the directory is a mix of a majority of ARW, JPG, DNG, MOV, MP4 etc. How do I write a command to take out all the files that are a certain filetype (ie. all MP4)

StarGeek

Assuming you don't have any files with the wrong extension, you could use
exiftool -fast3 -ext mp4 -directory=/new/path/ /path/to/files/

The -fast3 option is used so exiftool doesn't take time to actually open the file and parse the data.  The -ext (-extension) option limits operation to just mp4 files.

See also Writing "FileName" and "Directory" tags.
"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