|
The size, in bytes, of the specified file
object.Size
object
A File object.
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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.