barnack, am I correct in saying you want the built-in File Explorer (explorer.exe) to present a saved list of files to the user, on command? (In the same way that the search function of explorer.exe shows them)
If so, I don't think there is an exact solution to this, if we are limited to using explorer.exe.
However, you might be able to get close enough to what you want to do with a bit of experimenting. This resource may be able to help you:
https://docs.microsoft.com/en-us/windows/desktop/search/-search-savedsearchfileformat
When you perform a search in the File Explorer, and then click on the Search tab, you should see an option to "Save search". Save this file somewhere -- it is a ".search-ms" XML file that you can view on a program like Notepad++.
You'll see a part of the XML structure that shows
<condition type="leafCondition" ...>
Instead of making it a leafCondition, make it an orCondition. Experiment with this using multiple or conditions to specify each file you want to show.
When you're done editing the file, double-click in the normal way to launch explorer.exe with the search query. I haven't tested this. It might not be fine-grained enough to do exactly what you want.
Edit: I might have found something even better for you, but I've only skimmed the surface
See:
https://en.wikipedia.org/wiki/Virtual_folder#Windows
In Windows 7, the concept of virtual folders has been significantly realized with the introduction of the Libraries feature. Similar to Saved Searches, a Library is simply an XML file but with the .library-ms extension and is essentially a collection of files with specified attributes presented in a familiar folder-style visual interface. Libraries have a shell namespace extension in Explorer and their XML files can be reused across Windows installations or the network. |
https://docs.microsoft.com/en-us/windows/desktop/shell/library-schema-entry