Selecting a file/folder pair based on a partial name match

I'm trying to do something that is kind of a cross between SELECT SIMILAR & SELECT SOURCETODEST and I'm lost. Here's the situation:

I want to select a subset of html docs from a larger database that each have a corresponding content folder in the format that both IE and Firefox create when saving a "complete" web page.

ex. doc.html and doc_files where the folder doc_files contains all the images, css etc.

I can select the subset of html docs just fine using a DO select filter that matches a string in the html files, but I also need to select the corresponding content folders and this is where I get stuck. Is there a way to perform a filtered select that would grab both the file and it's corresponding folder in one pass?

e.g. search the html for some string content and select each resulting file <selected file>.html and it's corresponding folder <selected file>_files

If this isn't something DO will do out of the box, I'm all for scripting this in vbscript. But I haven't a clue on how to setup the script to pass/return the proper arguments and then integrate it in a DO command.

Thanks
Mark

In customize mode create a new button, switch to advanced mode editing, and then paste the following code into it.

@nodeselect Select TYPE=dirs PATTERN="{o|noext}_files"

That is too cool... exactly what I wanted to do!!!
Thanks John