ExifTool Forum

ExifTool => Newbies => Topic started by: tomey on July 13, 2015, 05:47:06 PM

Title: Copy Files into Directories based on date and Comment tag
Post by: tomey on July 13, 2015, 05:47:06 PM
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
Title: Re: Copy Files into Directories based on date and Comment tag
Post by: Phil Harvey on July 13, 2015, 06:31:56 PM
Hi Tomey,

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

- Phil