System.FreeDiskSpace Property
Returns the available disk space for the current drive, in bytes.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
ReadOnly Property FreeDiskSpace As Integer
Get
'Usage
Dim instance As System
Dim value As Integer
value = instance.FreeDiskSpace
int FreeDiskSpace { get; }
Property Value
Type: System.Int32
Remarks
Note There are 1024 bytes in a kilobyte and 1,048,576 bytes in a megabyte. The maximum return value for the FreeDiskSpace property is 2,147,483,647. Therefore, even if you have four gigabytes of free disk space, it returns 2147483647.