[Windows] 如何用编程的方式格式化硬盘

Posted liujx2019

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Windows] 如何用编程的方式格式化硬盘相关的知识,希望对你有一定的参考价值。

If memory serves, you‘re looking for SHFormatDrive().

 

Sounds like you are looking for Disk Management Control Codes.

answered Oct 7 ‘10 at 11:10
技术图片

Luke

 

ThI have ended up using a combination of WMI & DeviceIoControl with the Disk Management Control Codes. This looks to be able to do everything that I want, except that currently I am having some issues with using the Win32_Volume Format method in C++, I am constantly getting a WBEM_E_INVALID_METHOD_PARAMETERS error. – Zac Shenker Oct 12 ‘10 at 4:36
 
https://stackoverflow.com/questions/3879294/windows-c-c-drive-init-partition-format

以上是关于[Windows] 如何用编程的方式格式化硬盘的主要内容,如果未能解决你的问题,请参考以下文章

如何用mac读取移动硬盘

如何用代码控制ECharts的dataZoom

如何用硬盘安装《红帽企业级Linux AS版》(Redhat Enterprise Linux AS v5.4)rhel-server-5.4-i386-dvd。

如何用java生成一个XML文件,并且将该文件压缩成ZIP格式后再写到硬盘上?

如何用u盘安装中标麒麟桌面操作系统v6.0

Linux 中如何用命令直接修改分区ID