Latest web development tutorials

ASP TotalSize property

Drive Object Reference Complete Drive Object Reference

The total number of bytes TotalSize property returns the specified drive or network share.

grammar

DriveObject.TotalSize

Examples

<%
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 Object Reference Complete Drive Object Reference