Microsoft's Scripting Engine Extensions 1047 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. Example 9.103. 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 of the Folder object for the "temp" folder var myFolder = myFileSysObj.GetFolder("\\temp"); // Use an instance of the Enumerator object to access the files // in this folder. var myEnum = new Enumerator(myFolder.Files); // Write file names of the files in this folder while(!myEnum.atEnd()){ document.write(myEnum.item() + '<br>'); myEnum.moveNext(); } // End hide --> </script> Folder.IsRootFolder JScript3.0+Syntax folder.IsRootFolder Description The IsRootFolder property of an instance of the Folder object, evaluates to true if the folder is the root folder, and false otherwise.