Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

ASP TotalSize Property


❮ Complete Drive Object Reference

The TotalSize property returns the total size, in bytes, of a 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

❮ Complete Drive Object Reference