Re: Fast Size Folder

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Lorin" <Lorin@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:462C0467-510B-49E8-ABB9-63A7AFC9590D@xxxxxxxxxxxxxxxx

Thanks for the load of code. I will study.
What was said is what I thought except that I was hoping
that Windows gave us access to the much tighter code of
their routine to recurse a folder for total size via an API
(bet there is).

Bet there isn't :-)

I don't know where you get the idea that Windows has some much tighter code tucked away somewhere that can somehow give you this information without recursively doing exactly what we are ourselves doing in VB code. If that was the case then surely the OS would use such a wonderful beast when you right click a folder and select Options, and in that case the OS would produce the answer much quicker. But of course it doesn't, and under the same conditions the OS takes the same length of time to come up with the answer as does our VB code. There might be some slight differences in the stuff the OS uses, things like not being hampered by the VB "signed Long" problem for example, and those things might make a couple of percent difference, but for a "bottom heavy" job like this the task itself will be carried out in much the same way, and will take much the same amount of time. In fact the speed equivalence can easily be demonstrated by some simple testing.

Mike



.