Partitioning drives
I'm writing a app. that configures a system.
i have much of it completed, however, i'm having difficulties partitioning hard drives.
I'm able to do it using diskpart as a process and specifying the parameters file.
However, i don't want to use external tools/apps.
Currently, i'm doing it like so....
Dim prcAs Process
prc = Process.Start(Environment.GetEnvironmentVariable("COMSPEC"),diskpart .... etc")
Does anyone know of a way to partition a disk using only VB and .Net objects?
I don't really care if it has to use winapi's or imports on dll's. But i'm trying to avoid using a command processor.
Dustin.
[1593 byte] By [
Dustin_H] at [2007-12-24]
yes that does seem to be what i need.
however, that download is targeted for C/C++ and .Net 3.0
I've searched for a WinXP version of this and cannot find one.
basically, I'm going to be using my app from a customized WinPE CD.
I've managed to get .net 2.0 installed and working on the WinPE CD. I don't think 3.0 will work just yet.
Any idea on how to do this for a windowsXP based WinPE CD using .net 2.0?
I pretty much did a shell out of diskpart on the WinPE when I was developing a few apps for our customers for WinPE.
Unfortunately the request to include some API support for Diskpart did not get accepted when I placed in the request, for various reasons.
you can just shell out the appropriate commands/arguments using the ProcessStartInfo class - may not be the best way but certainly works for this situation