create subdirectories based on regular expression components

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

create subdirectories based on regular expression components

Postby Kenji » Thu Mar 16, 2006 12:30 pm

First of all thanks for an awesome program, I even reactivated my Pay Pal account to make a donation (seeing as I've been using BRU for a few years now :oops: )

I was thinking it would be good to be able to use regular expression components (or possibly other features of the program) to make directory structures.

eg

If I have folders called;

01-Part1
01-Part2

it would be nice to be able to match
([^-]*)-([^-]*)
and rename to
\1/\2

where forward slash is representing a folder division so a new folder "01" is created with two sub directories "Part1" and "Part2" (I'm sure there is a better syntax for the rename string \1"\"\2 or something)

I suppose this might be a bit out of scope for this program, but just a suggestion.

Cheers
Kenji
Kenji
 
Posts: 2
Joined: Thu Mar 16, 2006 11:49 am
Location: Australia

Postby Admin » Thu Mar 16, 2006 2:00 pm

I'm sure this is somehting which could be included. So, if the resulting filename contains a forward slash then the file should be placed in that foldername. So,

ABCDEF/GHI.txt

will get renamed to GHI.txt in folder ABCDEF

I'll have a look to see if this is feasible.


Jim
Admin
Site Admin
 
Posts: 1505
Joined: Tue Mar 08, 2005 8:39 pm

Postby Kenji » Thu Mar 16, 2006 10:25 pm

Ahh yeah that's a much better way of putting it...

I wonder if there would be any reason for being able to specify a folder division in the Match field too? Perhaps when using the Subfolders option?
I think most likely applications are already possible with the Append Folder Name option though..

Thanks for looking at this :)
Kenji
 
Posts: 2
Joined: Thu Mar 16, 2006 11:49 am
Location: Australia

Re: create subdirectories based on regular expression components

Postby lah » Sun Dec 11, 2011 3:40 am

Hi,

Did anything get added for this as it would be a very useful feature?
Anyother way to achieve this with othere BRU settings?
lah
 
Posts: 1
Joined: Sun Dec 11, 2011 3:38 am


Return to Suggestions