Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript File Object Size Property

The size, in bytes, of the specified file

Syntax: JScript File Object Size Property

object.Size

Arguments: JScript File Object Size Property

object

A File object.

Remarks: JScript File Object Size Property

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.