Folder.SubFolders

JScript3.0+Syntax

							folder.SubFolders

Description

The SubFolders property of an instance of the Folder object returns a collection consisting of all the Folder objects contained in the folder. This includes hidden and system folders.

Example

Listing 9.112 creates an instance of the Folder object, and then creates an instance of the Enumerator object to access the collection of folders contained in the Folders property. If this example is loaded in a browser, the names of each of the folders contained in the folder will be written to the page.

Listing 9.112 Using the SubFolders Property
 <script language="JScript"> <!-- Hide // Create an instance of the FileSystemObject var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.