path-part syntax
path-part syntax
in path-part:"parent folder\subfolderA\subfolderB\subfolderC" How can I display the 3 subfolders A, B and C in addition to the parent folder?
Re: path-part syntax
Something like the following?:
path-part in custom columns?
Code: Select all
addcolumn:column1 column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART(PATHPART($fullpath:)))),PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))))
Re: path-part syntax
that's really long...
I can do:
path-part:"desired"|folders:"desired"
in this instance it would give:
subfolders and files under desired\ folder together with the desired\ parent folder. Is there a better way ?
I can do:
path-part:"desired"|folders:"desired"
in this instance it would give:
subfolders and files under desired\ folder together with the desired\ parent folder. Is there a better way ?
Re: path-part syntax
Ah, did you mean search instead of display?How can I display the 3 subfolders A, B and C in addition to the parent folder?
Do you want to also search subfolders for the last subfolderC?
Please try the following search:
"parent folder\*" | "parent folder\subfolderA\*" | "parent folder\subfolderA\subfolderB\*" | "parent folder\subfolderA\subfolderB\subfolderC\*"
This will show files/folders directly in
"parent folder" OR "parent folder\subfolderA" "parent folder\subfolderA\subfolderB" OR "parent folder\subfolderA\subfolderB\subfolderC"
Another option would be parent:
parent:"c:\path\to\parent folder" | parent:"c:\path\to\parent folder\subfolderA" | parent:"c:\path\to\parent folder\subfolderA\subfolderB" | parent:"c:\path\to\parent folder\subfolderA\subfolderB\subfolderC"
Unfortunately, you need to specify the absolute path with parent.
If you wanted to include subfolders/files in the last subfolderC, please try the following search:
"parent folder\*" | "parent folder\subfolderA\*" | "parent folder\subfolderA\subfolderB\*" | "parent folder\subfolderA\subfolderB\subfolderC\"
* in Everything 1.5 will match any character except \ any number of times.
Re: path-part syntax
What if there are a alot of folders and subfolders? How can I implement this into a custom column? For example, add the last 3 "\" paths in a custom column ?
There has to be a better way than combining paths several times. Instead could it be controlled by the user? For example in a custom column, take the full path - "\" from the first 5 slashes from the left ?
Example:
C:\users\void\folder\quick\brown\fox
in a custom column place, subtract the first 3 slashes from the left so that whats leftover is placed in column1:
quick\brown\fox ?
There has to be a better way than combining paths several times. Instead could it be controlled by the user? For example in a custom column, take the full path - "\" from the first 5 slashes from the left ?
Example:
C:\users\void\folder\quick\brown\fox
in a custom column place, subtract the first 3 slashes from the left so that whats leftover is placed in column1:
quick\brown\fox ?