Previous PageNext Page

7.17.17 Size Property

The size, in bytes, of all files and subfolders contained in the folder.
 

Syntax

object.Size

object
A Folder object.

Remarks

The following code illustrates the use of the Size property with a Folder object:
 

function ShowFolderSize(filespec)

{

var fs, f, s;

fs = new ActiveXObject("Scripting.FileSystemObject");

f = fs.GetFolder(filespec);

s = f.Name + " uses " + f.size + " bytes.";

Response.Write(s);

}


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page