You could use txt_for_dir and then iterate through the folder contents, or, probably better, use the WinAPI to directly enumerate the folders content. Here is an easy to pick up sample with links to everything you need to do it with the WinAPI
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com