path-part in custom columns?
path-part in custom columns?
How do I use path-part: in custom columns ?
Re: path-part in custom columns?
addcolumn:column1 column1:=$path:
-or-
addcolumn:column1 column1:=$pp:
$pp: = Path Part for short.
I'll add a $pathpart: alias..
-or-
addcolumn:column1 column1:=$pp:
$pp: = Path Part for short.
I'll add a $pathpart: alias..
Re: path-part in custom columns?
column1:=$pp:("C:\users\username\random\folder\") like this?
Re: path-part in custom columns?
If you are referring to the PATH_PART() function call:
column1:=pathpart("C:\Windows\Notepad.exe")
=>
column1:=C:\Windows
column1:=pathpart("C:\Windows\Notepad.exe")
=>
column1:=C:\Windows
Re: path-part in custom columns?
I mean you know how if you use path-part:"*\random\folder" it will give you all results where the last part of the path matches random\folder But I want to use it this on a custom column because it has other parameters toovoid wrote: ↑Wed Jan 25, 2023 3:25 am If you are referring to the PATH_PART() function call:
column1:=pathpart("C:\Windows\Notepad.exe")
=>
column1:=C:\Windows
But how do I combine like the last 4 brackets of a path so path-part(path:,4) something like this? for each file/folder's path ?
Re: path-part in custom columns?
The last 4 subfolders/filename?
It gets ugly, but try something like:
It gets ugly, but try something like:
Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART(PATHPART($fullpath:)))),PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))))
Re: path-part in custom columns?
Doesnt seem to show any result except the command name in column 1void wrote: ↑Wed Jan 25, 2023 3:36 am The last 4 subfolders/filename?
It gets ugly, but try something like:
Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART(PATHPART($fullpath:)))),PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))))
Update: Nevermind, I had made a typo
Also, how can I customize it so that I can show the last 3, 4 or however many number of slashes from the right end of the path working towards the left?
Re: path-part in custom columns?
Remove or add PATHCOMBINE() as needed.
4 parts:
3 parts:
2 parts:
4 parts:
Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART(PATHPART($fullpath:)))),PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))))
Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:)))
Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))
Re: path-part in custom columns?
void wrote: ↑Wed Jan 25, 2023 4:01 am Remove or add PATHCOMBINE() as needed.
4 parts:3 parts:Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART(PATHPART($fullpath:)))),PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))))
2 parts:Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART(PATHPART($fullpath:))),PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:)))
Code: Select all
column1:=PATHCOMBINE(BASENAME(PATHPART($fullpath:)),BASENAME($fullpath:))
I can't narrow down the results using a specified path ?
Re: path-part in custom columns?
Replace $fullpath: with your path.
Re: path-part in custom columns?
There's a few instances of $fullpath:
Please make sure you replace each instance of $fullpath:
Please make sure you replace each instance of $fullpath: