|
The size, in bytes, of all files and subfolders contained in the folder.
object.Size
object
A Folder object.
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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.