check MSDN runtime library reference about "directory control", "file handling routines" and "system call" etc, you can get information about how to handle a drive, directory , how to "findfirst" and findnext" file