Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP TotalSize Property

ASP TotalSize Property


Drive Object Reference Complete Drive Object Reference Manual


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

Syntax

DriveObject.TotalSize

Example

<%

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

%>

Output:

The total size in bytes is: 4293563392


Drive Object Reference Complete Drive Object Reference Manual