search in subdirectory certain level

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
shawn
Junior Member
Junior Member
Posts: 36
Joined: 2007-04-05, 17:30 UTC

search in subdirectory certain level

Post by *shawn »

I know in TC, I can search in sub directory <= X level. But, I want to exclude level 1 and 2, only level 3 or >=3.
Is it possible?

If not, is it possible to make a expand selection in the search result, to only highlight level 3 or >=3?

Thanks in advance!
umbra
Power Member
Power Member
Posts: 876
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Hi, shawn. Check this toppic. You should find your answer there.
Windows 10 Pro x64, Windows 11 Pro x64
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: search in subdirectory certain level

Post by *white »

shawn wrote:I know in TC, I can search in sub directory <= X level. But, I want to exclude level 1 and 2, only level 3 or >=3.
Is it possible?

If not, is it possible to make a expand selection in the search result, to only highlight level 3 or >=3?
No, but it is possible to use the internal tc plugin to include/exclude absolute folder levels.

To search or mark absolute folder level x use:

Code: Select all

Plugin:   tc 
Property: path
 
OP:       regex     (use operator "regex" to include search results)
OP:       !regex    (use operator "!regex" to exclude search results)

Value:    ^([^\\]*\\){x}      (filter folder level x and deeper)
Value:    ^([^\\]*\\){x}$     (filter at folder level x and not beyond)
x = 1, means all files and folders in the root of the drive(s)
x = 2, means all files and folders in folders in the root of the drive(s)
etc.
shawn
Junior Member
Junior Member
Posts: 36
Joined: 2007-04-05, 17:30 UTC

Post by *shawn »

Thank you White! It works like a charm!
shawn
Junior Member
Junior Member
Posts: 36
Joined: 2007-04-05, 17:30 UTC

Post by *shawn »

umbra wrote:Hi, shawn. Check this toppic. You should find your answer there.
Thanks for your help as well!
Post Reply