..In my programm I need to search for files in whole drive including subfolders. Is there any routine in VC++ which can manage that? Is "searchenv" routine capable to do that? How to specify that I need search whole drive?
you should enter each directory and list it recursively by using SetCurrentDirectory, FindFirstFile/FindNextFile.
You should know what ".." means the parent directory, "." means current directory and "\\" or "/" means the root directory. Also a recomendation is to not recurse more than two levels of directories. One level is enough. Other levels you will recurse only when you need some other directory. You will enter it and process it recursively again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.