The EnumNetworkDrives method returns a collection of the current network drive mappings.
The EnumNetworkDrives method returns a WshCollection object that is a collection of the local and remote names of all the mapped network drives. All the even-indexed elements in the collection are local names, while all the odd-indexed elements in the collection are remote names. Further, the elements are paired (0 and 1 are the first drive, 2 and 3 are the second drive, etc.)
Set WshNetwork =
WScript.CreateObject("WScript.Network")
Set clDrives =
WshNetwork.EnumNetworkDrives
For i = 0 to clDrives.Count
-1
WScript.Echo
clDrives.Item(i)
NextP:
\\FileServer\public
Q:
\\FileServer\uploadThis VBScript code lists all the mapped network drives on a machine.