I have this code and want to know how can I only get the fixed drive, (HDD
drives) to show and not the map or dvd drives, and how can I make it that it
shown bytes in this format 111,111,111,111 .
--
Message posted via DotNetMonster.c om
drives) to show and not the map or dvd drives, and how can I make it that it
shown bytes in this format 111,111,111,111 .
Code:
Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
Dim d As DriveInfo
For Each d In allDrives
lstdrives.Items.Add(d.Name)
lstdrives.Items.Add(d.DriveType.ToString)
If d.IsReady = True Then
lstdrives.Items.Add(d.VolumeLabel)
lstdrives.Items.Add(" free Bytes: " + d.AvailableFreeSpace.
ToString + " " + " bytes")
End If
Next
Message posted via DotNetMonster.c om
Comment