Drives : Drives « MS JScript « JavaScript Tutorial






The Drives collection holds a read-only collection of all the available drives.

An item pointer is used to navigate through the items in the collection rather than an array index.

You can only move the current item pointer to the first or next element of a collection.

You can only access its item by using and Enumerator object.

Properties Associated with Drives Collection

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


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








32.6.Drives
32.6.1.Drives
32.6.2.Drives.Count
32.6.3.Drives.Item()