ExifTool > Newbies

Rename and sort into Subfolders

(1/3) > >>

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

StarGeek:
Change
-d "%Y%m%d_%H%M%S.%%e"
into
-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.

Leerzeichen:
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 ---
into

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

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...

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

StarGeek:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version