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.
Function ShowFreeSpace(Optional drvPath = "C:")
Dim fso, d, s
Set fso = CreateObject("Scripting.FileSystemObject")
Set d = fso.GetDrive(fso.GetDriveName(drvPath))
s = "Drive " & UCase(drvPath) & " - "
s = s & d.VolumeName & vbCrLf
s = s & "Total Size: " & FormatNumber(d.TotalSize / 1024, 0) & " Kbytes" & vbCrLf
s = s & "Free Space: " & FormatNumber(d.FreeSpace / 1024, 0) & " Kbytes"
ShowFreeSpace = s
End Function
'=========================================
Private Sub Command0_Click()
MsgBox ShowFreeSpace
End Sub