Setting incrementing timestamps

Bulk Rename Utility How-To's

Setting incrementing timestamps

Postby AdamJelly » Wed Jul 26, 2023 5:15 pm

I have several files. The names end with 001, 002, 003 etc. I want to change the dates of all the files but the timestamp to increment by a second for each file. So each file has a similar timestamp but each is different by a second, so when they will sort in date order.
AdamJelly
 
Posts: 1
Joined: Wed Jul 26, 2023 5:04 pm

Re: Setting incrementing timestamps

Postby Admin » Sat Jul 29, 2023 2:43 am

Look at "Change File Timestamps" in Special (14) but I do not think it's possible there. I think it can be done with a Javascript function.
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Setting incrementing timestamps

Postby therube » Mon Jul 31, 2023 4:46 pm

Aside from JS...

(Nirsofts) BulkFileChanger.

Add your group of files (drag & drop or whatever) into BFC
F6 (Change File Time), in the Modified: row, enable Add, then 2 seconds
Do it.

Note that 'Do it', does it, so make sure what you're wanting to do is what is will do.
IOW, test on a copied set of files, first, verifying expected results.

Also note that you can do 1 second, but depending, 1 second may (or may not) effect a change.
(As in I'm guessing "1 second" is... I'm not quit sure, but is taking the milliseconds into consideration, & adding "1", but then with rounding, it may end up being the "same" rather then +1. In the end, that probably ? won't matter, except you might have a sequence like 1 2 4 instead of 1 2 3.)
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To