Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Get Directory Quota

Posted on 2008-10-01
3
Medium Priority
?
349 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
[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
  • 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

715 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