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

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 TotalSize 属性


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

The TotalSize property returns the total size, in bytes, of a specified drive or network share.
ASP TotalSize属性的作用是返回指定驱动器或者网络共享文件夹的总节数。

Syntax
语法

DriveObject.TotalSize

Example
举例

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The total size in bytes is: " & d.TotalSize)
set d=nothing
set fs=nothing
%>

Output:

The total size in bytes is: 4293563392

评论 (0) All

登陆 | 还没注册?