Question get all the partitions on the system

enzom83

Member
Joined
Nov 28, 2005
Messages
18
Programming Experience
5-10
Hi, I would make an unattended recovery disk for my Dell laptop using Windows PE 2.0 and, so I am in need of a program which analizes the first disk on the system in order to get all partitions.
The program should check:
- if there is an OEM partition (hidden);
- the number of logical partitions;
- the number of primary partitions.
Then, if there is only a primary partition, the program should delete it and create two primary partition...

Is it possible?

Thanks a lot!

Vincenzo
 
Hello.

What are you trying to accomplish? These things can be done within some minutes with a Linux-LiveCD (f.e. gparted, Knoppix or DSL).

Also I'm not sure if this is possible within the .NET Framework, since you don't really have the possibility to go to the 'low end' of the computer (remember, you can't even access USB Ports for somekind of I/O, and the SerialPort class leads directly down into the API).

Correct me if I'm wrong...

Bobby
 
Back
Top