[This is preliminary documentation and subject to change.]
The Item property provides the natIndexth enumerated item as a string. It is the default property.
WshCollection(natIndex) = strEnumeratedItem WshCollection.Item(natIndex) = strEnumeratedItem
Set WshNetwork = Wscript.CreateObject("Wscript.Network")
Set oDrives = WshNetwork.EnumNetworkDrives
Wscript.Echo oDrives.Item(0) = " "Z:"
Wscript.Echo oDrives.Item(1) = "\\Server\Share"
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.