How to list all files with folder containing a wildcard?

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 list all files with folder containing a wildcard?

Post by AlexXY »

I have a lot of folders containing the file alpha.exe, but I don't know which folders are a complete set of files.
I would like to be able to get a complete list of the files across the directories if the directory contains alpha.exe.

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

Re: How to list all files with folder containing a wildcard?

Post by highend »

By scripting it...

Code: Select all

    $folders = quicksearch("alpha.exe /fp", , , "s");
    end (!$folders), "No folder(s) with that file found, aborted!";

    $items = "";
    foreach($folder, $folders, <crlf>, "e") {
        $items .= listfolder($folder, , 1, <crlf>) . <crlf>;
    }
    paperfolder("ContainsFile", $items);
One of my scripts helped you out? Please donate via Paypal

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

Re: How to list all files with folder containing a wildcard?

Post by AlexXY »

Thanks for the script, but it didn't give what I am looking for.
I ran the script.
It says it found 19 but doesn't give the folder names or the files in the folders.
It also gave the message "Not Responding.

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

Re: How to list all files with folder containing a wildcard?

Post by highend »

Post the content of the "ContainsFile.txt" file in your XY data \Paper subfolder then?
One of my scripts helped you out? Please donate via Paypal

Post Reply