Latest web development tutorials

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)
set d=nothing
set fs=nothing
%>

输出:

The total size in bytes is: 4293563392


ドライブオブジェクトリファレンス 完全なドライブオブジェクトリファレンス