TotalSize

收藏:0   阅读:32

ASP TotalSize 属性


TotalSize 属性返回指定驱动器或网络共享的总字节数。

语法

DriveObject.TotalSize

实例

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

输出:

The total size in bytes is: 4293563392
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!