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オブジェクトリファレンス その他の拡張