Drives object (Object/JScript)

A collection of drives belonging to a file system.


JScript - 3.0
Internet Explorer - 4.0
JavaScript syntax:IEmyDrives = myFileSystem.Drives
Object properties:count

The Drives object is a collection that needs to be used with an enumerator to access the individual drive items.

Example code:

   // Instantiate a file system object
   myFileSystem = new ActiveXObject("Scripting.FileSystemObject");
   // Create an enumerator
   myEnum = new Enumerator(myFileSystem.Drives);
   // Traverse the Drives collection via the enumerator
   for(; !myEnum.atEnd(); myEnum.moveNext())
   // A function to do something with each disk drive
   function processDrive(aDrive)

See also:FileSystem.Drives[]

count n/a3.0 3.0 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a-