Folder.Files

JScript3.0+Syntax

							folder.Files

Description

The Files property of an instance of the Folder object, returns a collection consisting of all the File objects contained in the folder. This includes hidden and system files.

Example

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

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

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.