7.15.15 Size Property

The size, in bytes, of the specified file
Syntax
object.Size
- object
- A File object.
Remarks
The following code illustrates the use of the Size property with a File object:
function ShowFolderSize(filespec)
{
var fs, f, s;
fs = new ActiveXObject("Scripting.FileSystemObject");
f = fs.GetFile(filespec);
s = f.Name + " uses " + f.size + " bytes.";
Response.Write(s);
}
Copyright © 2000 Chili!Soft
|