Version: 3.0
The Item property allows us to retreive the value of an item in the collection designated by the specified key argument and also to set that value by using itemvalue.
This property returns an Item from the collection relating to a specified key (drive name).
<%
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 "'."
%>
"The volume label for drive c is 'C:'."
This code shows how to retrieve an item from a Drives collection.