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.
Syntax:
DriveObject.TotalSize
Example: The below code demonstrates the ASP Drive.TotalSize Property.
ASP
<%
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
%>
|
Output:
Total size of drive: 499368587264 bytes
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...