ASP TotalSize 属性

定义和用法

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

语法:

  1. DriveObject.TotalSize

例子

  1. <%
  2. dim fs,d
  3. set fs=Server.CreateObject("Scripting.FileSystemObject")
  4. set d=fs.GetDrive("c:")
  5. Response.Write("The total size in bytes is: " & d.TotalSize)
  6. set d=nothing
  7. set fs=nothing
  8. %>

输出:

  1. The total size in bytes is: 9693563395