目录搜索
文字
分享

ASP TotalSize 属性




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

语法

1

<div> DriveObject.TotalSize </div>

实例

1

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