You can use the Format method of the DriveInfo class to format the drive to the FAT32 file system. Here's an example code:
main.cs228 chars7 lines
The Format method takes two parameters, the file system type (in this case, "FAT32") and a Boolean indicating whether to perform a quick format or a full format. Set quickFormat to true if you want a quick format, or false if you want a full format.
Note that formatting a drive will erase all data on it, so make sure you have a backup before you proceed with the format.
gistlibby LogSnag