ASP TotalSize 屬性
完整的 Drive 對象參考手冊
TotalSize 屬性返回指定驅(qū)動(dòng)器或網(wǎng)絡(luò)共享的總字節(jié)數(shù)。
語法
實(shí)例
<%
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 對象參考手冊
更多建議: