Properti ASP TotalSize
Jumlah byte TotalSize properti mengembalikan ditentukan drive atau jaringan berbagi.
tatabahasa
DriveObject.TotalSize
contoh
<%
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
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
Lengkap Referensi drive Obyek