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 ( |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access