Hi,
Is it possible to rename a folder based on the name of one it's subfolders?
example:-
A/Fod {1285}
to
A {1285}/Fod {1285}
Also can I list the folders that contain a folder, say with a "{" ?
Thanks
Rename a folder based on a subfolder
-
- Posts: 6
- Joined: Tue Dec 07, 2021 5:01 pm
Re: Rename a folder based on a subfolder
Select your Fod {1285} folders.
From the Edit menu, under the Advanced submenu, click Advanced Move to Folder.
Check Regular expressions.
Change the Old format to:
Change the New format to:
Review the new filenames and click OK.
Search for:
folder:{
-or-
( if you want to match {multiple-digits} )
From the File menu, click Export....
Choose a filename and click Save.
From the File menu, click Open File List.
Select your filelist from above and click Open.
Search for:
When you are done with the results, close your file list from File -> Close file list.
For Everything 1.5:
childfolder:{
From the Edit menu, under the Advanced submenu, click Advanced Move to Folder.
Check Regular expressions.
Change the Old format to:
^(.*)\\([^\\]*)\\([^\\]*) \{(\d+)\}$
Change the New format to:
\1\\\2 {\4}\\\3 {\4}
Review the new filenames and click OK.
With Everything 1.4:Also can I list the folders that contain a folder, say with a "{" ?
Search for:
folder:{
-or-
regex:"^(.*)\\([^\\]*)\\([^\\]*) \{(\d+)\}$"
( if you want to match {multiple-digits} )
From the File menu, click Export....
Choose a filename and click Save.
From the File menu, click Open File List.
Select your filelist from above and click Open.
Search for:
childfoldercount: child:{
When you are done with the results, close your file list from File -> Close file list.
For Everything 1.5:
childfolder:{
-
- Posts: 6
- Joined: Tue Dec 07, 2021 5:01 pm
Re: Rename a folder based on a subfolder
Thanks David.
I use childfolder:{ as this picked all the folders I wanted to add too.
Then advanced rename to add what I wanted.
I changed my mind on what I was going to do, and went with adding " {MIXED}" to every folder that contained a folder with {letters numbers}. I was looking at 8500 folders to change as it turned out it was only 2000!
So heap of thanks.
Oh and the first option didn't work for me. I think because the path depth was not consistent?
I use childfolder:{ as this picked all the folders I wanted to add too.
Then advanced rename to add what I wanted.
I changed my mind on what I was going to do, and went with adding " {MIXED}" to every folder that contained a folder with {letters numbers}. I was looking at 8500 folders to change as it turned out it was only 2000!
So heap of thanks.
Oh and the first option didn't work for me. I think because the path depth was not consistent?