473,472 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disk Management

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
Nov 16 '05 #1
2 3726
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...b;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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <jo*@discussions.microsoft.com> wrote in message
news:98****************************@phx.gbl...
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

Nov 16 '05 #2
What OS are you talking about?

Willy.

"Joe" <jo*@discussions.microsoft.com> wrote in message
news:98****************************@phx.gbl...
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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ben Jeurissen | last post by:
Hello, I have to deal with the following issue in C++: Two threads are started from the main thread, both capturing images from a different firewire camera. Both threads take shots of 460800...
12
by: New World Order Pigs | last post by:
Is there no way in .net to get disk space remaining for a given drive??? I can't believe it and yet is seems to be so. If someone knows of a way to do this in the .net libraries I'd be very much...
6
by: Steve Gerhart | last post by:
Hopefully someone can point me in the right direction. I'm try to construct a table that has the following information about disk drives on 2000 and NT 4.0 boxes. Size, Partitions and Logical...
2
by: Dan | last post by:
I've written a short function to return the amount of free disk space on a specified drive (for example c:) and it works fine on my development platform. In production, however, I am getting an...
1
by: Soren Hyltoft | last post by:
Using API: GetVolumeInformation to retrieve harddisk serial number works in VB6 But in VB.NET it returns 0. Please tell me how to do it in VB.NET
2
by: mikeybe | last post by:
Anyone know how to return the disk number (i.e. the number you see when you launch windows disk manager and see your drives numbered disk 0, disk 1, etc.)? I'm not talking about the volume serial...
8
by: Foodbank | last post by:
Hi, Has anyone ever hashed a text file to disk before? I'm trying to convert an in-memory hash to disk hash and I can't find any relevant information to help me. Also, I'd like to use lseek,...
34
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
0
by: trazcure | last post by:
Hi everyone, my name is Traz I'm trying to write some C# code that will check for remote disk space on network shares. I have seen across the internet and MSDN that you can utilize the...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.