Rename a folder based on a subfolder

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Confucius Of Essex
Posts: 6
Joined: Tue Dec 07, 2021 5:01 pm

Rename a folder based on a subfolder

Post by Confucius Of Essex »

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
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Rename a folder based on a subfolder

Post by void »

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:
^(.*)\\([^\\]*)\\([^\\]*) \{(\d+)\}$

Change the New format to:
\1\\\2 {\4}\\\3 {\4}

Review the new filenames and click OK.


Also can I list the folders that contain a folder, say with a "{" ?
With Everything 1.4:
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:{
Confucius Of Essex
Posts: 6
Joined: Tue Dec 07, 2021 5:01 pm

Re: Rename a folder based on a subfolder

Post by Confucius Of Essex »

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?
Post Reply