我想用c#编程格式化(FAT32)可移动驱动器.在互联网上我找到了一种方法,但问题是它打开了通用的Windows格式程序.但我想只使用C#并且没有内置的Windows支持.
我的方法是:
// FAT32 Format Button click event
[DllImport("shell32.dll")]
static extern uint SHFormatDrive(IntPtr hwnd, uint drive, uint fmtID, uint options);
Run Code Online (Sandbox Code Playgroud)