I am familiar with the WMI method of formatting a partition but what if I wanted to create a partition programmatically? Is this possible and if so, can someone point me in the right direction because I am having the toughest time finding information about this. Thanks
You'll probably just want to use Process.Start
to call diskpart with the arguments/script you need to partition the disk:
http://support.microsoft.com/kb/300415
http://technet.microsoft.com/en-us/library/cc766465%28v=ws.10%29.aspx
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.