August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folderscollection.Count
The Count property of the Folders collection returns the number of folders in the collection. Folders are added to this collection by using the Folders.Add() method.
Listing 9.116 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 number of folders in 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 = ... |
Read now
Unlock full access