How to select/filter parent folders based on a specific contained filename?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
AlexXY
Posts: 43
Joined: 11 Jul 2014 14:26

How to select/filter parent folders based on a specific contained filename?

Post by AlexXY »

I have a large number of folders, some of which contain a specific file (for example, RECEIPTS.XLSX).
I want to find a way to automatically select or filter only the parent folders that contain this specific filename so that I can easily copy or move those folders to a new location.

What is the best way to achieve this in XYplorer?
• Can this be done natively via Find Files (e.g., using the Location or Script tabs)?
• Is there a specific XYplorer script (xys) that can mark or select these folders in the current list view?
• Can I output these matching folders to a Paper Folder for easy management?

Any help or script snippets would be greatly appreciated!

jupe
Posts: 3569
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to select/filter parent folders based on a specific contained filename?

Post by jupe »

You can just put the filename in the Name field of the Find Files panel, followed by /p eg.

RECEIPTS.XLSX /p

To put them in a PF all you need to do it click the Paperfolder button (or menu item) and select Toggle Paperfolder afterwards.

AlexXY
Posts: 43
Joined: 11 Jul 2014 14:26

Re: How to select/filter parent folders based on a specific contained filename?

Post by AlexXY »

Great!! Very useful. Thanks very much!!

Post Reply