Disk Management

J

Joe

Hi Guys,

Is it possible to create a disk management system
using .NET entirely. What I mean by the above is having
an application possibly a .NET windows service monitoring
the disk, creating and adding users and giving them
access to store a limited amount of data.

The only thing which does this in my knowledge is the
FileSystemWatcher component. But how do I then monitor
who is trying to access the resource and how do I
restrict him if his limit has exceeded.

Are there any classes in the System.Management or WMI to
do this or is there any other free COM component I have
to do a wrapper for in .NET

I would appreciate any links or ideas

Thanks a lot

J0e
 
N

Nicholas Paldino [.NET/C# MVP]

Joe,

I don't think that you need to write a service to do this. If you are
running Windows 2000 or greater, you can take advantage of the disk quota
system that is already in the OS. Check out the knowledge base article
titled "HOW TO: Manage Disk Capacity and Usage By Using Windows 2000",
located at (watch for line wrap):

http://support.microsoft.com/default.aspx?scid=kb;en-us;300979

If you want to do this programatically, then check out the Disk
Management Interfaces, which have the COM interfaces that the system uses to
change disk quotas.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top