DriveInfo.DriveFormat() : DriveInfo « System.IO « VB.Net by API






DriveInfo.DriveFormat()

  
Imports System
Imports System.IO


Public Class MainClass

   Shared Sub Main()
        For Each drive_info As DriveInfo In DriveInfo.GetDrives()
            Console.Write(drive_info.Name & "   " )
            Console.WriteLine(drive_info.RootDirectory.ToString)
            If drive_info.IsReady() Then
                Console.WriteLine( drive_info.DriveFormat())
            End If
        Next drive_info

   End Sub 

End Class

   
    
  








Related examples in the same category

1.DriveInfo.AvailableFreeSpace()
2.DriveInfo.DriveType()
3.DriveInfo.GetDrives()
4.DriveInfo.IsReady()
5.DriveInfo.Name
6.DriveInfo.RootDirectory
7.DriveInfo.TotalFreeSpace()
8.DriveInfo.VolumeLabel()