ASP TotalSize 属性
定義と用法
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) d = nothing set fs = nothing set %>
出力:
バイト単位の合計サイズは: 9693563395