Best way to rename files to calendar days in order

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Best way to rename files to calendar days in order

Postby Serenity23 » Sat Jul 01, 2017 5:42 pm

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.
Serenity23
 
Posts: 1
Joined: Sat Jul 01, 2017 5:34 pm

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

Postby Admin » Thu Jul 06, 2017 1:57 am

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
Admin
Site Admin
 
Posts: 1464
Joined: Tue Mar 08, 2005 8:39 pm

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

Postby therube » Thu Jul 06, 2017 9:12 am

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.
therube
 
Posts: 313
Joined: Mon Jan 18, 2016 6:23 pm


Return to BRU Support


cron