ASP AvailableSpace property
AvailableSpace property returns the user to the amount of free space on the drive or network share specified.
Note: The returned value is usually equal to the value returned by the FreeSpace property.Computer systems that support quotas, the value returned by these two properties differ.
grammar
DriveObject.AvailableSpace
Examples
<%
Dim fs,d
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set d=fs.GetDrive("c:")
Response.Write("Drive " & d)
Response.Write(" Available space in bytes: " & d.AvailableSpace)
set d=nothing
set fs=nothing
%>
输出:
Drive c: Available space in bytes: 884465152
Dim fs,d
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set d=fs.GetDrive("c:")
Response.Write("Drive " & d)
Response.Write(" Available space in bytes: " & d.AvailableSpace)
set d=nothing
set fs=nothing
%>
输出:
Drive c: Available space in bytes: 884465152
Complete Drive Object Reference