The length property is read only and returns a Long value which is the number of items in the collection.
WshNetwork =
WScript.CreateObject("WScript.Network")
clDrives =
WshNetwork.EnumNetworkDrives()
for (i=0;
i<clDrives.length; i++)
{
WScript.Echo(clDrives(i))
}P:
\\FileServer\public
Q:
\\FileServer\uploadThis JScript code uses the length property to set up a loop over the list of current network drives.