ExifTool Forum

ExifTool => Newbies => Topic started by: BrianTurner on January 20, 2014, 04:04:30 AM

Title: Getting images sorted into directories
Post by: BrianTurner on January 20, 2014, 04:04:30 AM
Hi again Phil.
The syntax evades me...., or I it!
I have really tried many configurations, but keep getting the same results.
"The system cannot find the file specified."

Exiftool S:\SortedImages '-Directory<DateTimeOriginal' -d %Y/%m/%d S:\NewImages

S:\SortedImages Where I want the results, really exists on my S: Drive. So does S:\NewImages.
I have JPG files in both folders in case i have the syntax reversed.
Please put me out of my misery :-[
Title: Re: Getting images sorted into directories
Post by: Phil Harvey on January 20, 2014, 07:19:07 AM
Hi Brian,

You need to write the Directory tag with the directory you want the images to be stored in.  Writing just %Y/%m/%d is fine, but this is a relative directory name so your current working directory must be the desired destination, so you must first change directory ("cd") to the destination:

cd S:\SortedImages
exiftool "-Directory<DateTimeOriginal" -d %Y/%m/%d S:\NewImages


Alternatively, you can specify an absolute directory path for Directory:

exiftool "-Directory<DateTimeOriginal" -d C:/SortedImages/%Y/%m/%d S:\NewImages

(Forward and backward slashes are the same for exiftool in Windows.  Also note that you must use double quotes, and not single quotes around arguments in Windows.)

- Phil
Title: Re: Getting images sorted into directories
Post by: BrianTurner on January 20, 2014, 10:52:03 AM
Phil you are truly a STAR!
Thank you for a great application with super support behind it.
Kindest regards.

Brian Turner.