473,511 Members | 15,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

all about disk...

Hi

What .NET class can I use to do what disk management mmc/diskpart.exe does, i.e. list all partitions in the local drive, delete a selected partition, extend a selected partition, etc.

Thanks
Paul
Nov 16 '05 #1
2 1605
Paul,

You can probably use the classes in the System.Management namespace to
create instances of the appropriate WMI classes to manage the disks on your
local machine.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Paul" <an*******@discussions.microsoft.com> wrote in message
news:F1**********************************@microsof t.com...
Hi,

What .NET class can I use to do what disk management mmc/diskpart.exe does, i.e. list all partitions in the local drive, delete a selected
partition, extend a selected partition, etc.?
Thanks,
Paul

Nov 16 '05 #2
True, but I just can retrieve the information from WMI. I can't actually modify it like... deleting a partition, creating a new one, formatting a partition, etc

I really hope that MS will have this kind of class in .NET framework 2.0 or something soon..

Paul
Nov 16 '05 #3

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

Similar topics

3
2049
by: zyqnews | last post by:
hello all, I now have a simple project. It is to test the change of use disk, when a new usb disk is plugged into the usb socket, the program will copy a file to the usb disk, then disabled the...
2
2977
by: Larry Melia | last post by:
I've been working with Oracle 9i for about 8 months on windows XP (the same problem occurs with WIN2000). However, I noticed that the latest release has some software that "hits the disk" about...
1
3084
by: Frank Fulton | last post by:
I ran a search through the last 52,549 msg's in this forum and found nothing and was unable to find anything in the .net help system or MSDN online. I know there used to be a way to monitor disk...
12
10989
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...
1
1544
by: Guadala Harry | last post by:
Suppose two different servers (two different physical machines - no clustering or farming going on here) on the same network: 1: Web Server (2003/IIS6) 2: SQL Server .... and an ASP.NET Web...
2
16046
by: Jas Shultz | last post by:
I'm using Win2K3 Enterprise edition with the latest .NET framework installed. I have this problem with getting "out of disk space" errors. I have 35 Gigs of disk space free. It doesn't happen...
8
4206
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,...
3
6444
by: ary | last post by:
I try to create a weblog host site! in this case i can't use cache for every page because that cause to be my Server ram full of caching page. but if I can save cache in hard disk my problem...
2
3422
by: James | last post by:
CASE 1: The following sentences were copied from the book "Administration Guide Performance". "If more pages have been written to disk, recovery of the database is faster after a system crash...
11
3046
by: GG | last post by:
Anybody knows of any collection where is not stored in memory but using hard disk instead? Thanks *** Sent via Developersdex http://www.developersdex.com ***
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
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
7418
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...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5063
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
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
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 ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
446
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.