DiskFree (function)

Syntax DiskFree& ([drive$])
Description Returns a Long containing the free space (in bytes) available on the specified drive.
Comments If drive$ is zero-length or not specified, then the current drive is assumed. Only the first character of the drive$ string is used.
Example This example uses DiskFree to set the value of i and then displays the result in a message box.
Sub Main()
  s$ = "c"
  i# = DiskFree(s$)
  MsgBox "Free disk space on drive '" & s$ & "' is: " & i#
End Sub
See Also ChDrive (statement); DiskDrives (statement).