Can everything limit the search layer of the child folder?
I want to do a search at the root folder(A) and not looking into W|Z|X. I want the search to stop at the third layer.
I know I can do a search and not search W and Z and X to stop it but that is just too much work sometimes
A\B\C\W
A\D\E\Z
A\F\G\X
Search Layer Limit
Re: Search Layer Limit
parents: is one way.
volume:A\B\C\W
parents:5 (5, cause W is the 5th element in the path, including the volume)
finds,
c:\a\b\c\w\desktop.ini
but not,
c:\a\b\c\w\6\desktop.ini
volume:A\B\C\W
parents:5 (5, cause W is the 5th element in the path, including the volume)
c: desktop.ini parents:5finds,
c:\a\b\c\w\desktop.ini
but not,
c:\a\b\c\w\6\desktop.ini
Re: Search Layer Limit
"c: desktop.ini parents:5"
Is this a complete search syntax? why C: follow by space. Isn't that literally mean and.
I look for the parents: function but don't quite get it. I did it by regex.
Tools - the root folder for searching
\\ - literal "\" *path separator
[^\\]+ - whatever that is not "\" repeat from 1 to unlimited *Folder name
\\ - literal "\" *path separator
([^\\]+\\){0,1} - Folder name follow by path separator that repeat from 0 to 1. Can amend easily
\.(exe|msi|ps1|bat) - literal "." follow by either of the 4 string.
$ - make sure the extension name is the last string of the file name. To exclude folders name "*****.exe.config"
Is this a complete search syntax? why C: follow by space. Isn't that literally mean and.
I look for the parents: function but don't quite get it. I did it by regex.
Code: Select all
regex:Tools\\([^\\]+\\){0,1}[^\\]+\.(exe|msi|ps1|bat)$\\ - literal "\" *path separator
[^\\]+ - whatever that is not "\" repeat from 1 to unlimited *Folder name
\\ - literal "\" *path separator
([^\\]+\\){0,1} - Folder name follow by path separator that repeat from 0 to 1. Can amend easily
\.(exe|msi|ps1|bat) - literal "." follow by either of the 4 string.
$ - make sure the extension name is the last string of the file name. To exclude folders name "*****.exe.config"
Re: Search Layer Limit
depth: might make this easier.
Adjust depth: depending on the depth of c:\path-to-a\
depth:
c:\path-to-a\ depth:<5Adjust depth: depending on the depth of c:\path-to-a\
depth:
Re: Search Layer Limit
thanks. that's what I need.