ASP FreeSpaceProperty
Complete Drive Object Reference Manual
FreeSpace property returns the amount of remaining space available to the user on the specified drive or network share.
Note:The returned value is usually equal to the value returned by the AvailableSpace property. For computer systems that support quotas, the values returned by these two properties may differ.
Syntax
DriveObject.FreeSpace
Examples
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("Drive " & d)
Response.Write(" Free space in bytes: " & d.FreeSpace)
set d=nothing
set fs=nothing
%>
Output:
Drive c: Free space in bytes: 884465664
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("Drive " & d)
Response.Write(" Free space in bytes: " & d.FreeSpace)
set d=nothing
set fs=nothing
%>
Output:
Drive c: Free space in bytes: 884465664
Complete Drive Object Reference Manual Other Extensions