in reply to Opening a web page directory

As with some others above, I'm not sure I understand exactly what you're trying to do, but it sounds as though you may be trying to find reference-material inside (reasonably named) files in what you call the "http" directory. (Unless they're browser-accessible and find-able via some sort of intranet search or index, why would they be in an html-oriented directory?)

But, trying to follow the code rather than the words, I infer that may be the case because you say
#code here copies each document from subfolder to c:\sitemaps.
(I doubt the IT folk will be well pleased if you actually copy all the documents and load up some drive with dupes so I'll offer some answers on the suspicion you would be satisfied to copy document names and addresses -- in effect, creating your own index.)

If so, perhaps some of these references will be helpful:

...and... I may be waaaay off target, but suggest you read the pod (documentation) for File::Find

Finally it also might be well to read the Monastery's docs on search and supersearch, in case the answers here come up short on responsiveness.