?
本文檔使用 php中文網(wǎng)手冊 發(fā)布
TotalSize 屬性返回指定驅動器或網(wǎng)絡共享的總字節(jié)數(shù)。
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