Latest web development tutorials

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對象參考手冊