VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/asp-size-property/

⇱ ASP size Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP size Property

Last Updated : 31 Mar, 2021

The ASP size property is used to return the size of the specified file or folder. It returns the value in terms of bytes.

Syntax:

  • For file Object:
FileObject.Size 
  • For folder Object:
FolderObject.Size 

Example-1: Below code returns the size of a file. 

Output:

The size of GFG.asp is: 100323 bytes.

Example-2: Below code returns a size of a folder.

Output 

The size of the folder test is: 123456 bytes.
Comment
Article Tags: