The Count method returns a Long value which is the number of items in the collection.
Set WshNetwork =
WScript.CreateObject("WScript.Network")
Set clDrives =
WshNetwork.EnumNetworkDrives()
For intI= 0 ToclDrives.Count -
1
WScript.Echo
clDrives.Item(intI)
NextP:
\\FileServer\public
Q:
\\FileServer\uploadThis VBScript code uses theCountmethod to set up a loop over the list of current network drives.