which function counts the number of directories?
-
Can anyone help me to find a function that counts the number of directories? I've tried it with the _findnext function but obviously it only works for counting the number of files and not the directories. Thanx a lot! Kind regards, Geert
-
Can anyone help me to find a function that counts the number of directories? I've tried it with the _findnext function but obviously it only works for counting the number of files and not the directories. Thanx a lot! Kind regards, Geert
look at the definition of struct _finddata_t the
attrib
member
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
-
look at the definition of struct _finddata_t the
attrib
member
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
Does this also work for directories? Thanx, Geert
-
Does this also work for directories? Thanx, Geert
yes, look at the MSDN, it says _A_SUBDIR Subdirectory. Value: 0x10 Or use FindFirstFile
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676