Renaming files named with date already in a different format

Post any general comments regarding Bulk Rename Utility here. Open to all registered users.

Renaming files named with date already in a different format

Postby Sikerim » Sat Dec 05, 2015 12:21 am

For years I've been saving my files with prefix of: mm.dd.yy
Typically, I'll leave the rest of the file the way it is and just add the prefix manually. So I'll have files like
11.14.15.pdf
11.13.15 Statement_Nov 2015.pdf
10.03.15 20151004173036.pdf

I want to change all my files to format of: yyyy-mm-dd
Meaning above examples would now be
2015-11-14.pdf
2015-11-13 Statement_Nov 2015.pdf
2015-10-03 20151004173036.pdf

I am having trouble figuring out if/how BulkRenameUtility can help do this... can it?

Also, these files aren't in one folder, but hundreds/thousands of folders. Can i set BulkRenameUtility to only make changes when it detects the above format when looking into all subfolders, and to not touch the file at all if it doesn't meet the above format?

Additionally, some folders also have same format, in addition to files - I'd like to rename the folders/directories as well.

Thanks!
Sikerim
 
Posts: 3
Joined: Sat Dec 05, 2015 12:08 am

Re: Renaming files named with date already in a different format

Postby Admin » Sat Dec 05, 2015 1:43 am

Hi, wait for version 3.0 released in the next couple of weeks and you will be able to do that with javascript renaming. thanks
Admin
Site Admin
 
Posts: 1505
Joined: Tue Mar 08, 2005 8:39 pm

Re: Renaming files named with date already in a different format

Postby Sikerim » Sat Dec 05, 2015 4:22 am

Awesome, can't wait! Thanks!
Sikerim
 
Posts: 3
Joined: Sat Dec 05, 2015 12:08 am

Re: Renaming files named with date already in a different format

Postby Sikerim » Wed Apr 06, 2016 11:57 pm

Hey everyone, I played with the new version and can't figure out how to do this. Any tips you can give me? Thanks!
Sikerim
 
Posts: 3
Joined: Sat Dec 05, 2015 12:08 am

Re: Renaming files named with date already in a different format

Postby Admin » Thu Apr 07, 2016 12:25 am

You could have a Javascript function in BRU checking all files for a . in position 3 and 6.
If there's a dot there then parse out the first 8 chars into a date, and replace them with the correct date format.
We can help you with the function that does that, but you would need to buy a commercial license for BRU to use Javascript.
thanks
Admin
Site Admin
 
Posts: 1505
Joined: Tue Mar 08, 2005 8:39 pm


Return to General Comments