Drives.Item() : Drives : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Drives »

 

Drives.Item()









Syntax








new enumeratorobj = Enumerator(Drives)

    enumeratorobj.Item()



Because the Drives object is a collection, the Item() property relates to an enumerated Drives collection.












<html>
    <H1>Drive Letters and drive types:</H1>
    <script language="JScript">
    <!--
    var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");

    var en = new Enumerator(fileSysObj.Drives);

    for (;!en.atEnd();en.moveNext()) {
      document.write("Drive ",en.item().DriveLetter);
      document.write(" is of type ",en.item().DriveType,"<br>");
    }
    -->
    </script>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Drives