Search Results Based on the Existence of Another ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
GreetingsFromPoland
Posts: 284
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

Search Results Based on the Existence of Another ?

Post by GreetingsFromPoland »

hi!
  • i have a folder that contains several hundred subfolders.
  • each subfolder (no folder within it) contains ZIP files, for example, "afile.zip", "bfile.zip", etc.
  • some of these folders contain a matching "-delta" file, for example, "filename.zip" and "filename-delta.zip". for the matching one, "-delta" is always appended to the original file name
is it possible to search for files that only have a matching "-delta" version and display the name of the original file in the Search Results tab ?

so in this case, the "find" would find "filename.zip" because the "filename-delta.zip" exists also and show "filename.zip" the Search Results.

currently i was searching for "-delta" files, going into the containing folder and working with the "original", repeat. was very time consuming.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search Results Based on the Existence of Another ?

Post by highend »

Either scripting or apply a visual filter to remove the ones you don't want to see after searching via gui
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1374
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Search Results Based on the Existence of Another ?

Post by Horst »

Such search maybe possible with the Everything script.
Windows 11 Home, Version 25H2 (OS Build 26200.8457)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1412b (x64), Everything Toolbar 2.3.0, Listary Pro 6.3.6.99

GreetingsFromPoland
Posts: 284
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

Re: Search Results Based on the Existence of Another ?

Post by GreetingsFromPoland »

thank you both ! i tried some scripting and visual filters, but couldn't get it exactly right. i don't have Everything loaded/running any longer.

i got real close using Regex for non-capturing groups and something called negative look ahead (or something like that), soooo close, but no.

i ended up grabbing a coffee and going into the folders and manually removing the non "-delta" match. it was a one-time job that saved me close to 400GBs of space, so time well spent.

thank you both again for your tips.

Post Reply