Link to home
Start Free TrialLog in
Avatar of kishor33
kishor33

asked on

Limiting disk space

I want to develop a VB programme through which i an limit the size of the users home dir in WindowsNT 4.0.
thank you,
Birendra
Avatar of vikiing
vikiing

You don't have a direct way to obtain the space occupied by a directory tree; the only way to do that is a recursive search thru all branches of the tree and cummulating the size of all files you find during the process. Of course, the bigger the tree, the slower the process.

Besides that, keep in mind that actual file size can be much more due to slack space of clustersize (if one file occupies 100 bytes, the actual space it takes is 1 cluster, whose size depends on the way the disk was set up).

ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kishor33

ASKER

This software works but only for 90 days can anyone give be the code how to limit disk space
Thank you
Birendra Kr Das.