Solved

Limiting disk space

Posted on 1998-12-20
3
139 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Window placement 17 74
Controlling which port to download from 4 71
using Access 8 58
How to set the row selection as it was prior leaving the datagrid in vb6 3 34
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

919 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

19 Experts available now in Live!

Get 1:1 Help Now