August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folder.ParentFolder
The ParentFolder property of an instance of the Folder object is used to return a new Folder object for the parent folder.
Listing 9.107 is run in an Internet Explorer browser, and it contains a single button. When the button is clicked, an alert box pops up displaying the name of the parent folder.
<html> <body> <script language="JScript"> <!-- Hide function get(){ // Create a FileSystemObject object var myObject = new ActiveXObject("Scripting.FileSystemObject"); // Create a Folder object var myFolder = myObject.GetFolder("c:\\Temp"); // Display the name of the parent folder alert (myFolder.ParentFolder.Path); } ... |
Read now
Unlock full access