# Net_EnumNetworkDrives

> Enumerates all mapped network drives.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/network-functions/net-enumnetworkdrives/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Enumerates all mapped network drives

### Syntax

Net_EnumNetworkDrives() As Boolean

### Return value

Result will be stored in gaValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = Net_EnumNetworkDrives()
If bStatus And IsArray(gaValue) Then
  For index = LBound(gaValue) To UBound(gaValue)
    If bStatus Then bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & gaValue(index), bStatus, True)
  Next
End If

```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Net_EnumNetworkDrivePaths](/capainstaller/vb-scripting-library/network-functions/net-enumnetworkdrivepaths/) [Net_MapNetworkDrive](/capainstaller/vb-scripting-library/network-functions/net-mapnetworkdrive/) [Net_RemoveNetworkDrive](/capainstaller/vb-scripting-library/network-functions/net-removenetworkdrive/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
