This code should retrieve any folder it encounters correct? Thanks.
Code:
if(GetFileAttributes(Find.cFileName)==FILE_ATTRIBUTE_DIRECTORY)
//do whatever here.
Printable View
This code should retrieve any folder it encounters correct? Thanks.
Code:
if(GetFileAttributes(Find.cFileName)==FILE_ATTRIBUTE_DIRECTORY)
//do whatever here.
Try this:That will handle any hidden or system folders as well.Code:if(GetFileAttributes(Find.cFileName) & FILE_ATTRIBUTE_DIRECTORY)
Parksie, that seems to be catching normal files such as EXE's as well as folders. Do you know what will just catch folders? Thanks