Help With Sorting Photos

Started by robdavies, February 03, 2018, 01:58:44 PM

Previous topic - Next topic

robdavies

I would like to sort photos using the directory structure
Camera Model/YYYY/YYYYMMDD

I have a folder with photos from two cameras and sorting them this way would be brilliant. I have found how to do it using two commands
exiftool -r <sourcedir> '-Directory<${model;}'
and the
exiftool '-Directory<DateTimeOriginal' -d %Y/%Y%m%d <sourcedir>

I have to run the second command for each folder the first command produces. Is there a way to do this in one command?

Thanks in advance, Rob

Phil Harvey

Hi Rob,

Sure, try this:

exiftool '-directory<${model;}/$datetimeoriginal' -d %Y/%Y%m%d DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

robdavies

Thank you so much. Does exactly what I need.

Rob