TUTORIAL后端与 Web 服务FETCHED

ASP TotalSize 属性

ASP TotalSize 属性 完整的 Drive 对象参考手册 TotalSize 属性返回指定驱动器或网络共享的总字节数。 语法 DriveObject.TotalSize 实例 <% dim fs,d set fs=Server.CreateObject('Scripting.FileSystemObject') set d=fs.GetDrive('c:'..

更新于 2026/7/16

教程详情页默认 noindex。

ASP TotalSize 属性


Drive 对象参考手册 完整的 Drive 对象参考手册

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


Drive 对象参考手册 完整的 Drive 对象参考手册