Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub ListDrives()
Dim FSO, dc, d
Dim S As String, N As String
Set FSO = CreateObject("Scripting.FileSystemObject")
Set dc = FSO.Drives
For Each d In dc
N = ""
S = S & d.DriveLetter & " - "
If d.DriveType = 3 Then
N = d.ShareName
ElseIf d.IsReady Then
N = d.VolumeName & " SN:" & Left(Hex(d.SerialNumber), 4) & "-" & Right(Hex(d.SerialNumber), 4)
End If
S = S & N & vbCrLf
Next
MsgBox S
End Sub