ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Rename files with incremental timestamp

<< < (2/3) > >>

JoTo:
Hi IconBoy,

i have made a quick and dirty script for you in PHP, and compiled it also to a standalone windows executable, so you can use it normally and without the need to have PHP installed on your PC.

It does what you requested (as far as i tested it :-)) ). But dont expect too much. Its only a quick and dirty 20 min. hack and not a fully bloated application.

So you have to use the console window and enter the following commandline

        touchfiles <SourceDir> <StartDate> <StartTime>

e.g.   touchfiles c:\mypics\vacation 2006/08/25 11:20:13

to start setting the files in c:\mypics\vacation to date 25th August 2006 beginning at 11:20:13 am...11:21:13am...11:22.13am... and so on.

It then does basic input checking, gets and sorts all files in SourceDir alphabetically in natural order and sets their datestamps to StartDate and the Timestamps to StartTime. For every next file StartTime is incremented by 1 minute (as you wished). If StartTime reaches 23:59:59->00:00:00 StartDate is incremented by 1 day.

If you start the program with no parameters or wrong or invalid ones, a detailed usage message is printed in the console window.

Both, the last accessed and last modification date/timestamp is set. Cannot help for creation date/timestamps. Havent found a function that will do this in PHP. But in Explorer the files are shown with the correct timestamps as set by TouchFiles.

I include the SourceCode of the Script also in the ZIPFile, in fact you are a PHP-Programmer and want to modify sth. Feel free to do that.

Hope it will help you in your task. Have fun!

CU
JoTo

allen:
XYPlorer can do this too.

IconBoy:
The little .exe helps a lot! :D
Thanks very much!!!

kimmchii:

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
-IconBoy (October 23, 2006, 08:21 PM)
--- End quote ---

BR can rename them to

alan.jpg - 001-10:12am 23/10/2006
bob.jpg - 002-10:12am 23/10/2006
craig.jpg - 003-10:12am 23/10/2006

this will have the same result as incremental minutes.

dcwul62:
I know this is an old thread. I was facing the same problems quite often.

There are hardly any tools that can do this.
It may be handy to update date/time incrementally, or at least the time.
For instance if you wish to combine selected screenshots having mixed date time stamp and change the date/time stamp
so the get a sequence date time stamp and can be sorted properly (e.g. screenshots of installing a program).

You may wish to check out Nirsoft bulkfilechanger, select the files, add them to BulkFIleChanger, then hit F6 tag, then tag date/time sequence mode.
=

http://imageshack.com/a/img631/8051/85Ki44.png
=

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version