Renaming a folder depending on its parents name

A swapping-ground for Regular Expression syntax

Renaming a folder depending on its parents name

Postby unkulunkulu » Fri Jul 04, 2008 8:54 pm

Does anyone know if it's possible to use BRU to rename a drop a subfolder's parent from its name? For example, if I were to have a folder called "Beatles" with a subfolder called "Beatles, The White Album", I'd like to rename the subfolder to "The White Album". I have several thousand such folders which may or may not contain a subfolder with a part of it's parent's name.

Any help is greatly appreciated.

-unkulunkulu
unkulunkulu
 
Posts: 2
Joined: Thu Jul 03, 2008 9:37 pm

Re: Renaming a folder depending on its parents name

Postby Admin » Sat Jul 05, 2008 7:00 am

No I don't think there's any way to do this. BRU allows you to append a folder name but not remove it.

If you have several thousand then manual work isn't an option. What you could do is get a list of all the folder names into a text file (via dir /b > list.txt or something similar) and manipulate them in Excel or something like that. You will want to get to a situation where you have two columns, oldname and newname. You can then use the "import rename pairs" facility in BRU.

That's the way I'd tackle it anyway.



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

Re: Renaming a folder depending on its parents name

Postby unkulunkulu » Sat Jul 05, 2008 9:47 pm

Ok thanks, I'll try that.
unkulunkulu
 
Posts: 2
Joined: Thu Jul 03, 2008 9:37 pm


Return to Regular Expressions