Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get Directory Quota

Posted on 2008-10-01
3
Medium Priority
?
352 Views
Last Modified: 2013-11-20
I know there are some winapi functions that can get the capacity of the drive itself, but in situations where the user has a fixed directory quota, how exactly would I check this with MFC?
0
Comment
Question by:steenpat
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 22618279
It's not really straightfoward as one would expect - take a look at http://www.codeproject.com/KB/system/DiskQuota.aspx ("Reading quota information on an NTFS volume"), this article comes with full source code.
0
 

Author Comment

by:steenpat
ID: 22619788
I'm not sure if this is going to work or not. Say for instance they are running novell and the user wants to copy his files to a directory that is quota limited by the server. will it treat this directory as an ntfs volume? i'm kind of confused about that.
0
 
LVL 86

Expert Comment

by:jkr
ID: 22620761
That should be covered transparently by the underlying software layer which manages the network connection itself.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

916 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