ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:43 AM

Title: Rename to specific directory
Post by: Archive on May 12, 2010, 08:54:43 AM
[Originally posted by raterus on 2009-12-09 00:54:51-08]

I'm trying to rename all my .jpg photos in "C:\Media\Pictures\new" to year/month specific folders in "C:\Media\Pictures\"

Code:
e.g. the end result would be and image
C:\Media\Pictures\2009\12\myimage.jpg

Here's what I have,
exiftool -o "C:\Media\Pictures" "-Directory<DateTimeOriginal" -d %Y/%m "C:\Media\Pictures\new"

It works, but the images are simply renamed under the directory they stand, I can't specify where they should be renamed at.  I'm thinking I'm not using the -o Option correctly here

Any help is much appreciated!
--Michael
Title: Re: Rename to specific directory
Post by: Archive on May 12, 2010, 08:54:43 AM
[Originally posted by exiftool on 2009-12-09 12:21:38-08]

Hi Michael,

Examples 10 and 11 in the
FileName
tag documentation
give details which should help answer
your question.   Basically the Directory tag takes precedence over -o.

Try this instead:

Code:
exiftool "-Directory<DateTimeOriginal" -d C:/Media/Pictures/%Y/%m "C:/Media/Pictures/new"

- Phil
Title: Re: Rename to specific directory
Post by: Archive on May 12, 2010, 08:54:43 AM
[Originally posted by raterus on 2009-12-10 01:05:16-08]

Worked great Phil, thank you for your time!