Page 1 of 1

Renaming files named with date already in a different format

PostPosted: Sat Dec 05, 2015 12:21 am
by Sikerim
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!

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

PostPosted: Sat Dec 05, 2015 1:43 am
by Admin
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

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

PostPosted: Sat Dec 05, 2015 4:22 am
by Sikerim
Awesome, can't wait! Thanks!

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

PostPosted: Wed Apr 06, 2016 11:57 pm
by Sikerim
Hey everyone, I played with the new version and can't figure out how to do this. Any tips you can give me? Thanks!

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

PostPosted: Thu Apr 07, 2016 12:25 am
by Admin
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