List all the files on a drive

This is a windows form application (CLR).

I've looked at a few different methods but nothing does what I want.

I'm wanting to create a program that will list every file (and directory) on a drive. Then I can enter keywords that will remove all files listed that don't have a matching word. Lastly when the list is short enough you can enter keywords to search for with-in the files (assuming they are RTF or TXT files).

please point me in the right direction of where to start. FindFirstFile/FindNextFiles, are not doing what I want, but perhaps I'm using them incorrectly.
FindFirstFile() and related functions are the way to go. You just need to use them recursively as you find new subfolders.
If you have problems just don't rely on FindFirstFile filtering, just get them all and apply your own regular expression to filter.
Topic archived. No new replies allowed.