I have a directory that has (say) a thousand saved web pages. I need the list of *.htm in the high-level directory only, not all the subdirectories. I could pull back everything and throw out the information from the subdirectories, but the time waste in scanning 1,000 subdirectories unnecessarily is extraordinary!
How can I pull back all/desired files from the top-level directory only?! (In Windows 7 you can use a '-folder' option to prevent subdirectory search but can't seem to find something similar here.)
Looked again at FOR EACH... NEXT approaches I looked at before posting originally. My issue was not commenting out the 'for each Dir...' which not surprisingly recursively looped through all subdirectories. <sigh!>