ExifTool > Newbies

Rename and sort into Subfolders

(1/3) > >>

Hi together

I have thousends of jpg Files from Different File based backups from different cameras, they are all unsorted.

I would like to start with rename and sort the IMGxxx.jpg to picturetakendate, also set "file modified" and "file created" to picturetakendate

I found and copied this commands

--- Code: ---exiftool -r. -d "%Y%m%d_%H%M%S.%%e" -ext jpg "-Filename<CreateDate" "-filemodifydate<createdate" "-filecreatedate<createdate" "E:\test"
--- End code ---
I tested it with some files and it is working great!

But now i want Rename and sort this Files into "YYYY\MM" Folder
I tried some code from the forum, read the FAQ, but it was not working.

Should be simple, i know, but i have no idea

I'm using Windows 10 1909, German Language

thank you very much in advance

-d "%Y%m%d_%H%M%S.%%e"
-d "%Y/%m/%Y%m%d_%H%M%S.%%e"

You can find the codes that represent parts of the date here.  And you can add directories to the -d (dateFormat) option.

wow, quite fast answer - thank you StarGeek
It is working fine, but it seams, if i have pictures with identical "picturetakendate", exiftool can do the first file, but not the second.

i changed

--- Code: ----d "%Y/%m/%Y%m%d_%H%M%S.%%e"
--- End code ---

--- Code: ----d "%Y/%m/%Y%m%d_%H%M%S%%-c.%%e"
--- End code ---

I can't follow your tipp with
--- Quote --- you can add directories to the -d (dateFormat) option.
--- End quote ---
I read the instruction but i don't understand it...

Can exiftool add the month as a name?
(attached picture)

Follow the first link I gave.  It will give you all the %codes that you can use for date/time values.  Full local month name is %B.


[0] Message Index

[#] Next page

Go to full version