I search variants to format hard or usb disks programmatically. I founded api-function SHFormatDrive, but here use windows-dialog. To my mind, this method not bad, but how i could to hide/forbid this dialog. Anywhere, i continue search a way to format disks programmatically.
I search variants to format hard or usb disks programmatically. I founded api-function SHFormatDrive
Share
Use the Format method of the Win32_Volume class. Details here.