Batch rename files to their file dates and times?
Moderators: helmut, XnTriq, xnview
-
- Posts: 358
- Joined: Mon Feb 05, 2007 8:26 pm
Batch rename files to their file dates and times?
Is there a way to batch rename files to their file dates and times? Such as:
"[modified date time]" = 2007/08/04 12h-38m-23s.jpg
"[modified date time]" = 2007/08/04 12h-38m-23s.jpg
Last edited by ghost zero on Sat Aug 18, 2007 1:32 am, edited 1 time in total.
Re: Batch rename files to their file dates and times?
You can use something like "<Accessed Date [Y/M/d H:M]>"ghost zero wrote:Is there a way to batch rename files to their file dates and times? Such as:
cat.jpg > 2007/08/04 12:38.jpg
Pierre.
-
- Posts: 358
- Joined: Mon Feb 05, 2007 8:26 pm
This filename template roughly does the job:ghost zero wrote:anyway to make it like:
2007/08/04 12h.38m.23s.jpg
i tried using a lowercase s and it turns into an 08...
<Accessed Date [Y/m/d H]>h.<Accessed Date [M]>m.<Accessed Date >s
It's a bit complicated, but not too bad, I think. For some reason I don't understand (at the moment) the slashes are converted to minus chars, output is for example "2007-08-04 12h.38m.23s.jpg".
With "Replace Char" you can change the minus char to slash and get exactly what you want. But I think there should be a way in the template to get the slash... Does anyone have an explanation for the slashes?
Re: Batch rename files to their file dates and times?
Supposed to be "<Accessed Date [Y/m/d H:M]>" (with lowercase "m" for month).xnview wrote:You can use something like "<Accessed Date [Y/M/d H:M]>"
-
- Posts: 358
- Joined: Mon Feb 05, 2007 8:26 pm
Instead…

• As a workaround, when I need a separator in a file-name I use often the character ¦ (Alt+0166) which is allowed.

- Also when there is an alternative in the spelling, i.e. : “S¦he is…”, that shortens the strings.

Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
Also---


Claude
Clo
Old user ON SELECTIVE STRIKE till further notice •
Oops, correct. Filenames must not contain these characters.JohnFredC wrote:Isn't a slash in a file name verboten in FAT32 and NTFS? My systems certainly won't accept it.For some reason I don't understand (at the moment) the slashes are converted to minus chars, output is for example "2007-08-04 12h.38m.23s.jpg"
-
- Posts: 358
- Joined: Mon Feb 05, 2007 8:26 pm