当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP AvailableSpace 属性

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP AvailableSpace 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 295 ::
收藏到网摘: n/a

The AvailableSpace property returns the amount of available space to a user on the specified drive or network share.
ASP AvailableSpace 属性的作用是将指定驱动器以及网络共享文件夹的可用空间数发送给用户。

Note: The value returned is often equal to the value returned by the FreeSpace property.
注意:这个返回的值与使用FreeSpace属性所返回的值相等。

Syntax
语法

DriveObject.AvailableSpace

Example
举例

<%
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
%>

Output:

Drive c: Available space in bytes: 884465152


评论 (0) All

登陆 | 还没注册?