Drives Collection
The Drives collection contains Drive objects representing the collection of all the drives on the current machine. This collection includes both physical drives and drives shared by other machines. This is a read-only collection; you cannot use this collection to add or remove a drive. The Drives collection's properties are shown in Table 19.2.
Table 19.2. Drives Collection Properties
Property |
Description |
---|---|
Count |
An integer that represents the total number of Drive objects in the collection. |
Item |
Returns a specific Drive object from the Drives collection. It works
exactly as does the Item property of the Contents collection of the
Application or Session objects. You can retrieve a specific Drive
object by index ( |
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.