Copy Files into Directories based on date and Comment tag

Started by tomey, July 13, 2015, 05:47:06 PM

Previous topic - Next topic

tomey

Hi,

I am trying to get Exiftool to sort files into a directory hierarchy based on creation date and the User Comment tag:

YYYY-mm Comment1
YYYY-mm other comment
YYYY-mm Bla Bla

But unfortunately I have only been able to create directories with either the creation date
exiftool -o . '-Directory<CreateDate' -d './%Y-%m' -r .
or the User Comment
exiftool -o . '-Directory<UserComment' -d './%Y-%m' -r .

But I didn't get it to work together:
exiftool -o . '-Directory<CreateDate UserComment' -d './%Y-%m' -r .
or
exiftool -o . '-Directory<CreateDate' -d './%Y-%m $UserComment' -r .

I was wondering if there is a way to achieve this.

Thank you very much.
tomey

Phil Harvey

Hi Tomey,

The application documentation gives all the details, but the bottom line is that you are looking for '-directory<$createdate $usercomment'

- 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 ($).