Previous PageNext Page

7.17.13 ParentFolder Property

Returns the folder object for the parent of the specified folder. Read-only.
 

Syntax

object.ParentFolder

object
A Folder object.

Remarks

The following code illustrates the use of the ParentFolder property with a folder:
 

function ShowFileAccessInfo(filespec)

{

var fs, f, s;

fs = new ActiveXObject("Scripting.FileSystemObject");

f = fs.GetFolder(filespec);

s = f.Name + " in " + f.ParentFolder + "<br>";

s += "Created: " + f.DateCreated + "<br>";

s += "Last Accessed: " + f.DateLastAccessed + "<br>";

s += "Last Modified: " + f.DateLastModified;

Response.Write(s);

}


Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page