Drives : Drives : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Drives »

 

Drives












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















Item Description
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>
    <script language="JScript">
    <!--
    var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");
    document.write(fileSysObj.Drives.count);
    -->
</script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Drives