Skip to content
Related Articles

Related Articles

Improve Article
ASP TotalSize Property
  • Last Updated : 19 Mar, 2021

The ASP TotalSize Property is used to return the total size of the specified drive on the system. It returns the values in bytes.



Example: The below code demonstrates the ASP Drive.TotalSize Property.


dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
'Getting the drive
set d=fs.GetDrive("d:")
'Getting the total size of the drive
Response.Write("Total size of drive: " & d.TotalSize & " bytes")
set d=nothing
set fs=nothing


Total size of drive: 499368587264 bytes
My Personal Notes arrow_drop_up
Recommended Articles
Page :