How to count number of files in a folder
-
Hi Friends, Could any one tell me, How to count number of files in a folder. Ex: C:\My Documents\New Folder I need to count all the files in this path.
Thanks and Regards. SANTHOSH V
-
Hi Friends, Could any one tell me, How to count number of files in a folder. Ex: C:\My Documents\New Folder I need to count all the files in this path.
Thanks and Regards. SANTHOSH V
you can use _findfirst() and _findnext(). The second function use the return value of the first function to retrieve. You can see more details in MSDN. But you should pay attention to the two found results,whose name is "." and "..",they are the current folder and its parent folder! You can test in MS-DOS.
-
you can use _findfirst() and _findnext(). The second function use the return value of the first function to retrieve. You can see more details in MSDN. But you should pay attention to the two found results,whose name is "." and "..",they are the current folder and its parent folder! You can test in MS-DOS.
Thank you friend, This _findfirst() and _findnext() helped me solve this problem. Thanks a lot once again.
Thanks and Regards. SANTHOSH V
-
Thank you friend, This _findfirst() and _findnext() helped me solve this problem. Thanks a lot once again.
Thanks and Regards. SANTHOSH V
If you are using DlgDirList you can get count of files.