Files at least one level deep

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Files at least one level deep

Postby LeBronFinallyGotAD » Thu Jun 27, 2019 7:08 pm

Hi,

I am trying to recursively rename files in subdirectories of a parent directory without renaming files directly in the parent directory.

For example,

Code: Select all
ParentDirectory/file1.txt # no rename
ParentDirectory/file2.txt # no rename
ParentDirectory/fileWithVeryLongNameThatIsLongerThanSubDirectoryFileName.txt # no rename

ParentDirectory/SubDirectory1
ParentDirectory/SubDirectory1/file1.txt # rename
ParentDirectory/SubDirectory1/file2.txt # rename

ParentDirectory/SubDirectory1/SubSubDirectory1
ParentDirectory/SubDirectory1/SubSubDirectory1/file1.txt # rename
ParentDirectory/SubDirectory1/SubSubDirectory1/file2.txt # rename

ParentDirectory/SubDirectory2
ParentDirectory/SubDirectory2/file1.txt # rename
ParentDirectory/SubDirectory2/file2.txt # rename


Is there a way to specify the files must be at least one level deep, so that file1.txt and file2.txt in ParentDirectory in this example are not renamed? I don't think PathLength will work because ParentDirectory might have a file with a long name in it.

Alternatively, is there a way to exclude files directly in a specific Directory (ParentDirectory in this case) but still include files in subdirectories of ParentDirectory?

Or a different way entirely of going about this?
LeBronFinallyGotAD
 
Posts: 2
Joined: Thu Jun 27, 2019 6:50 pm

Re: Files at least one level deep

Postby therube » Fri Jun 28, 2019 1:10 pm

In BRU, choose your parent directory, then simply do no select the files in that directory (or deselect them if they're selected by default).


Otherwise, I'd use Everything to find your wanted files, then drag them from Everything into BRU.
(Drag & drop doesn't always work cleanly on first attempt, so clear the list in BRU & drag again [usually works].)
https://www.voidtools.com/

One method...

Assuming your directory structure is C:/DOC/, a search for:
Code: Select all
C:/DOC/  parents:3-99

will find the files within DOC starting at the 3rd directory level.

C:/DOC/ find nothing, because that is only at the second directory level.
C:/DOC/Everything notes/ is found
C:/DOC/How to/Build a bridge to the moon/ is found
C:/DOC/How to/Fix/Bike/Derailleur/ is found
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Files at least one level deep

Postby LeBronFinallyGotAD » Fri Jun 28, 2019 3:51 pm

Thanks for the reply. I want to avoid having to rely on selecting the correct files because I may be sorting them in different ways and accidentally mess up or forget or something. I was also hoping to avoid "pre-processing" by moving the files first, but that's not really all that much work. Thanks for the tip about the parents modifier! I don't think I knew you could drag and drop into BRU either. Cheers.
LeBronFinallyGotAD
 
Posts: 2
Joined: Thu Jun 27, 2019 6:50 pm


Return to BRU Support