?
Solved

Limiting disk space

Posted on 1998-12-20
3
Medium Priority
?
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 60 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

800 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