ASP FreeSpace Property
Definition and Usage
The FreeSpace property returns the 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 differ.
Syntax:
DriveObject.FreeSpace
实例
<% 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: 669965663