File Object

Microsoft Office JScript

Microsoft® JScript® File Object  Scripting Run-Time Reference 
Version 3 

See Also                  Properties                  Methods


Description
Provides access to all the properties of a file.
Remarks
The following code illustrates how to obtain a File object and how to view one of its properties.
function ShowFileInfo(filespec)
{
  var fso, f, s;
  fso = new ActiveXObject("Scripting.FileSystemObject");
  f = fso.GetFile(filespec);
  s = f.DateCreated;
  return(s);
}