Add a column to display the rest of path for a certain search path

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Add a column to display the rest of path for a certain search path

Post by sk2107 »

Hello,

I tried to create a column to display the remaining part certain search, for example:

if I have a list of pahs:
c:\aaaa\bbbb\cccc\123\dddd.jpg
d:\xyz\123\eeee\jjjj\nnnn\rrrr\wkw.mp4

the search is: 123
so the new column will be

123\dddd.jpg
123\eeee\jjjj\nnnn\rrrr\wkw.mp4

the reason I needed this is to copy or move the new path to a certain location which will be :
c:\NewFolder\123\dddd.jpg
c:\NewFolder\123\eeee\jjjj\nnnn\rrrr\wkw.mp4

please note that the main reason of the question is the copy/ move operation and not adding the column

Thank you

Regards
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Re: Add a column to display the rest of path for a certain search path

Post by sk2107 »

Hello,

After some research I could do this:

path:regex:(123.+) add-column:A A-label:=Remainig A:=regmatch1:

but still can not figure out how to implement it in advanced copy/move to folder

Best Regards
void
Developer
Posts: 16698
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add a column to display the rest of path for a certain search path

Post by void »

In Advanced Copy/Move, check Regular expressions.
Set the old format to:
^(.*)\\123\\(.*)$

Set the new format to:
C:\\New Folder\\123\\$2:
sk2107
Posts: 324
Joined: Sun Aug 07, 2022 8:48 pm

Re: Add a column to display the rest of path for a certain search path

Post by sk2107 »

Great.

Thank you

Best Regards
Post Reply