Copy/Move parts of path

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

Copy/Move parts of path

Post by sk2107 »

Hello,

I need some help with copying/moving files to solve the issue of long paths, I choose to filter the long paths (fullpathlen:>255) for folders and change the length by changing the path taking the first 3 parts of the path and the last 2 parts of the path.

I learned before how to change the first part by using

Old Format: ^.*\\([^\\]*)\\([^\\]*)\\([^\\]*)$
New Format: f:\\newfolder\\\1\\\2\\\3

Thank you
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Copy/Move parts of path

Post by NotNull »

This might work (did not try to move the folders)
Will very likely not work on UNC paths (\\server\share\fodler\)


Menu => Edit => Advanced => Advanced Move To Folder

Code: Select all

Old = ^([^\\]+)\\([^\\]+)\\([^\\]+).*\\([^\\]+)\\([^\\]+)$
New = \1\\\2\\\3\\\4\\\5
Attachments
2024-04-15 23_07_15-Move To - Everything (1.5a).png
2024-04-15 23_07_15-Move To - Everything (1.5a).png (36.12 KiB) Viewed 1048 times
sk2107
Posts: 326
Joined: Sun Aug 07, 2022 8:48 pm

Re: Copy/Move parts of path

Post by sk2107 »

I will try that, thanks a lot.

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

Re: Copy/Move parts of path

Post by sk2107 »

Hello ,

It worked perfect but I faced a problem with ':' as I want to copy/move while keeping the drive letter after the new path of the target location.

Thank you
Post Reply