Folders : Folders « MS JScript « JavaScript Tutorial






The Folders collection holds a read-only collection of all the available folders.

Because the Folder object is a collection, the folders can be accessed only by using an Enumerator object.

The properties associated with the Folders collection are listed in the following table.

ItemDescription
AddAllows you to add a folder to the collection
CountReturns the number of items in the collection
ItemSet or return an item for a specified key in a Drives dictionary object


<html>
    <body>
    <script language="JScript">
    <!--
    var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");
    document.write(fileSysObj.Folders.count);
    // End hide-->
    </script>
    </html>








32.13.Folders
32.13.1.Folders
32.13.2.Folders.Add()
32.13.3.Folders.Count
32.13.4.Folders.Item