Skip to content
Related Articles

Related Articles

Improve Article

ASP AvailableSpace Property

  • Last Updated : 22 Mar, 2021

The ASP AvailableSpace Property is used for returning the amount of available space left on a drive. It returns the value in bytes.



Example: The below code illustrates the ASP Drive.AvailableSpace Property. 


Dim fs,dr
Set fs=Server.CreateObject("Scripting.FileSystemObject")
'Getting the drive to be checked
Set dr=fs.GetDrive("d:")
Response.Write("The drive: " & dr)
'Getting the avaialable space of the drive
Response.Write(" has available space: " & dr.AvailableSpace)
set dr=nothing
set fs=nothing


The drive: D: has available space: 992345694
My Personal Notes arrow_drop_up
Recommended Articles
Page :