coyotewrw wrote:Thanks Stefan, that works. :)
However, what do I do if I want to embed the parent folder name? Ie:
"D:\Music\Beatles\0000 - [Misc]"
to
"D:\Music\Beatles\0000 - [Beatles, Misc]"
Can Reg Exp accomplish this?
Thanks again!
I think RegEx can do this.
You have to know the deep of your folder structure.
--------- "D:\Music\Beatles\0000 - [Misc]"
Search: ([A-Za-z]):\\(.+?)\\(.+?)\\(.+?)\s-\s(\[)(Misc\])
- Code: Select all
([A-Za-z]) single drive letter
: column
\\ single back slash
(.+?) any char, one or more, lazy i.e. only as many as is it enough => Music
\\
(.+?) => Beatles
\\
(.+?) => 0000
\s space
- minus
\s space
(\[) open [
(Misc\]) Misc]
Replace: \1:\\\2\\\3\\\4 - \5\3 \6
- Code: Select all
\1 the catched drive letter
:
\\ back slash (maybe one back slash is enough while replace???)
\2 Music
\\
\3 Beatles
\\
\4 0000
-
space
\5 [
\3 Beatles
space
\6 Misc]
---
But you have nowhere the full path provided to catch the pattern this way.
---
Your solution could be:
First pass:
1.) select in the left Tree (F11) your parent folder "D:\Music\Beatles"
2.) select in the right panel the folder you want to rename "0000 - [Misc]"
3.) Add rule #9 (Append Folder name) as Prefix
4.) use an space as Sep.
5.) increase the amount of parent folders you need
6.) rename your folder to "Beatles 0000 - [Misc]"
Second pass:
7.) now select your folder "Beatles 0000 - [Misc]"
8.) create an RegEx to move "Beatles" where you want it to be like "0000 - [Beatles, Misc]".
---
If this was helpful for you please help two others too.