How to select entire folder for file found?

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

How to select entire folder for file found?

Post by AlexXY »

I have an app that creates options.xml files when it analyzes text files.
When I want to delete the processed files, I search on options.xml.
When it comes back with those folders, I want to select certain folders and delete those selected folders.
Is there a way to do that?

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

Re: How to select entire folder for file found?

Post by highend »

Append {space}+/p to your search term?
One of my scripts helped you out? Please donate via Paypal

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

Re: How to select entire folder for file found?

Post by jupe »

If you mean you want to see the options.xml files in the list, maybe hoverbox/view them, then select a few and then delete their parent folder (and all its contents), you could use a script like this:

delete 1, 1, report("{FullPath}<crlf>", 1);

Be extremely cautious with what you have selected when you run it though.

Post Reply