Basu Biswas

Basu Biswas

  • NA
  • 55
  • 0

Calculating Drive size...

Jan 31 2007 8:34 AM

what is teh most efficient way for calculating the size of a big folder or a Drive itself.

Right now I am calculate the folder or drive size by calculating each file size inside
that drive.

Now if I calculate a folder size like this it takes hell lot of time.

And if I try to calculate drive size a deadlock occurs. It gives error like

   Error : ContextSwitchDeadlock was detected
           The CLR has been unable to transition from COM context 0x1a0858 to
           COM context 0x1a09c8 for 60 seconds. The thread that owns the
           destination context/apartment is most likely either doing a non
           pumping   

Is there some system functions which I can use to calculate drive and big folder size.

Plz do help....

 


Answers (1)