I intend to count the folder given a path using API function. I tried to use file system object before but it always give me out of memory problem. Therefore I seek the API function for my solution. Is there any API function available to count the number of subfolders given a folder path? If yes, pls provide the coding on how to call the API function and include any dll?