Page 1 of 1

Best way to rename files to calendar days in order

PostPosted: Sat Jul 01, 2017 5:42 pm
by Serenity23
Basically I currently have a bunch of files separated into folders based on their dates. Each file was downloaded today in order of increasing date (past to present). They have generic names like report.pdf, report (1).pdf, report (2).pdf, where for example, report.pdf would be for a report generated for 03-01-2017; report (1).pdf would be for a report generated for 03-02-2017, and so on so forth.

I did this before using BRU in the past, but it's been a while and I seem to have forgotten what I had done before. Is there an easy way to go about doing this? I imagine, I could just rename everything to something like 03-01-2017 first, and then follow up by removing the '01', and adding an ascending number in it's place.

Is there an easier way to do this? The auto-date, as far as I can tell, wouldn't work because all the files were downloaded today.

Re: Best way to rename files to calendar days in order

PostPosted: Thu Jul 06, 2017 1:57 am
by Admin
Hi, can you post a few examples of file names before and after (how they are named now and what they should be renamed into). thanks

Re: Best way to rename files to calendar days in order

PostPosted: Thu Jul 06, 2017 9:12 am
by therube
Is there only 1 file (report) each day?

If so...

2:Name
-> Remove

8:Auto Date
Code: Select all
Mode:  Prefix
Type:  Creation (Current)
Fmt:  Custom
Custom:  %m-%d-%Y


If there is more then one file for a day, you'd need to add something unique to the name.
A counter, or %I:%M:%S, assuming you don't have to files with the same time, to the second.