Microsoft Scripting Runtime
Members
In This Topic
    Folder Object
    In This Topic
    Description
    Provides access to all the properties of a folder. Can be obtained from the GetFolder Method on the FileSystemObject Object.
    Object Model
    Folder ObjectTextStream ObjectDrive ObjectFiles CollectionFile ObjectFolder ObjectFolders CollectionFolder Object
    Example
    The following code illustrates how to obtain a Folder object and how to return one of its properties:
    Function ShowDateCreated(folderspec)
       Dim fso, f
       Set fso = CreateObject("Scripting.FileSystemObject")
       Set f = fso.GetFolder(folderspec)
       ShowDateCreated = f.DateCreated
    End Function
    function ShowFolderInfo(folderspec)
    {
       var fso, folder, s;
       fso = new ActiveXObject("Scripting.FileSystemObject");
       folder = fso.GetFolder(folderspec);
       s = folder.DateCreated;
       return(s);
    }
    See Also