August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folderscollection.Item(foldername)
The Item property of an instance of the Folders collection returns foldername folder.
Listing 9.117 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 second folder added to the Folders collection.
<html> <body> <script language="JScript"> <!-- Hide function get(){ // Create an instance of the FileSystemObject var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); // Create two instances of the Folder object for the "temp" folder var myFolder = myFileSysObj.GetFolder("c:\\Temp"); // Access the sub folders collection ... |
Read now
Unlock full access