all about disk...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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]
- (e-mail address removed)

Paul said:
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.?
 
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
 
Back
Top