All Properties
Drives Collection
Property: Drives Collection.Item
Implemented in version 3.0
object.
Item
(drive)
This property returns an
Item
from the collection relating to a specified key (drive name).
The following code shows how to retrieve an item from a
Drives
collection.
Code:
<%
Dim filesys, drvcoll, label
Set filesys = CreateObject("Scripting.FileSystemObject")
Set drvcoll = filesys.Drives
label = drvcoll.Item("c")
Response.Write "The volume label for drive c is '" & label & "'."
%>
Output:
"The volume label for drive c is 'C:'."
Copyright 1999-2004 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information