Page 1 of 1
How to list all files with folder containing a wildcard?
Posted: 20 Aug 2024 04:22
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.
Re: How to list all files with folder containing a wildcard?
Posted: 20 Aug 2024 08:29
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);
Re: How to list all files with folder containing a wildcard?
Posted: 22 Aug 2024 03:40
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.
Re: How to list all files with folder containing a wildcard?
Posted: 26 Aug 2024 10:22
by highend
Post the content of the "ContainsFile.txt" file in your XY data \Paper subfolder then?