Solved

Limiting disk space

Posted on 1998-12-20
3
138 Views
Last Modified: 2010-05-03
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
0
Comment
Question by:kishor33
3 Comments
 
LVL 3

Expert Comment

by:vikiing
ID: 1451530
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).

0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 20 total points
ID: 1451531
Save your time. Application already exists. It's called Quota Manager.

http://www.ei-europe.com/quota_manager.htm

To give an answer to your question. There is no feature in NT to do this except very low level trapping all IO called (that's what quota manager does)
0
 

Author Comment

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now