Rename files with incremental timestamp

A swapping-ground for Regular Expression syntax

Rename files with incremental timestamp

Postby IconBoy » Tue Oct 24, 2006 12:27 pm

I have files in a folder with different names sorted (alphabetically).
I would like the file names' time and date stamps to be re-written so
that each are 1 minute older than the previous alphabetically named one
alan.jpg - 18:24am 25/12/2003
bob.jpg - 9:03am 01/04/2001
craig.jpg - 13:54am 12/12/2006

would become

alan.jpg - 10:12am 23/10/2006
bob.jpg - 10:13am 23/10/2006
craig.jpg - 10:14am 23/10/2006

Is there a way I can accomplish this? I want the time/date stamp
to apply to the created | modified | accessed of the file.
Thanks very much.
PS - reason for needing this is because many times I need to sort photos on a SD card for a PDA and the PDA does not always sort alphabetically. If it does (and then I add a new pic to the card), the new pic is at the bottom of the card list instead of where it should be alphabetically.
Posts: 1
Joined: Tue Oct 24, 2006 10:54 am

Postby Admin » Tue Oct 24, 2006 4:33 pm

I don't recommend relying on datestamps for your sorting. Different file systems handle datestamps differently, especially FAT which can often make a total mess of a timestamp. It's much safer to rename the files with a suitable numeric prefix, pehaps using Autonumbering.

If you want to change the timestamps then unfortunately BRU cannot help, as it only allows a fixed timestamp to be specified, not a "flexible" timestamp.

Site Admin
Posts: 1505
Joined: Tue Mar 08, 2005 8:39 pm

Return to Regular Expressions