如何在WIndows上用Python格式化硬盘?

时间:2017-11-18 12:50:21

标签: python windows python-3.x winapi

我正在寻找一种通过给定字母,所需卷序列号(VSN)和文件系统类型格式化硬盘驱动器的方法。我找到了这个Format Drive in Python,但它没有说什么并设置VSN,据我所知它是异步完成的。

letter = "H:"
vsn = "A78B-12BF"  # or 1745221157
fstype = "FAT32"

format_drive(letter, vsn, fstype)  # <-- what should be here?

我需要在Windows上使用Python 3的解决方案。

0 个答案:

没有答案
相关问题