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.
Item | Description |
Add | Allows you to add a folder to the collection |
Count | Returns the number of items in the collection |
Item | Set 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>