Microsoft® JScript™
File Object
 Language 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 fs, f, s;
    fs = new ActiveXObject("Scripting.FileSystemObject");
    f = fs.GetFile(filespec);
    s = f.DateCreated;
    window.alert(s);
}

© 1997 by Microsoft Corporation. All rights reserved.