Getting images sorted into directories

Started by BrianTurner, January 20, 2014, 04:04:30 AM

Previous topic - Next topic

BrianTurner

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 :-[

Phil Harvey

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

BrianTurner

Phil you are truly a STAR!
Thank you for a great application with super support behind it.
Kindest regards.

Brian Turner.