In my job I'm always working with folders that have from 600k to over 1 million items in them. I need some code (VB) that can return the total number of items in the folder specified. I know looping through the folder with a counter is going to be painfully slow.
Is there a FileSystem folder object or something that already stores the number of items in the folder that I can reference instead of looping through and adding them up 1 by 1?
Question
forcedsquint
In my job I'm always working with folders that have from 600k to over 1 million items in them. I need some code (VB) that can return the total number of items in the folder specified. I know looping through the folder with a counter is going to be painfully slow.
Is there a FileSystem folder object or something that already stores the number of items in the folder that I can reference instead of looping through and adding them up 1 by 1?
Thanks.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts