Renaming .MOV files how to get yyyy-mm-dd hh.mm.ss

Started by rahulk, January 09, 2014, 09:34:32 PM

Previous topic - Next topic

rahulk

First of all , kudos to Phil !!! Loved this application. Can't tell how valuable this tool was for me.  :)
I saw this post earlier
https://exiftool.org/forum/index.php?topic=4178.0

Phil suggested this(below) - This works perfectly fine...However, I wanted the format  YYYY-MM-DD HH.MM.SS
exiftool -d "%%y-%%m-%%d--%%H%%M%%S" "-filename<createdate" -k %*
Please let me know how this can be accomplished. Thanks in Advance !!!

rahulk

This is an example of current format
13-08-10--190946.MOV

I would like this to look like 2013-08-10 19:09:46.MOV

I am not so familiar with the technical aspects, only thing I can do is just follow and update my .bat file  :)

Phil Harvey

#2
Here is a list of date/time formatting codes.  It looks like you want this:

-d "%%Y-%%m-%%d %%H.%%M.%%S"

However you should add ".%%%%e" to this if you want to keep the file extension.

(All the "%" characters are doubled because you are using this in a .BAT file.)

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

rahulk

Thanks much Phil. This worked like wonder. Awesome tool. I've searched for hours on internet how to do this kind a thing.
Now I can organize tons of videos that I have  :)
Appreciate your great work !