since we have an issue enumerating recursively without case statements we currently have a large script that consists of a lot of type
If Instr(1, strGroups, "cn=edinburgh-finance-gls", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If Instr(1, strGroups, "cn=edinburgh-payroll-gls", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If InStr(1, strGroups, "cn=edinburgh-claims-gls", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
and then say similar for glasgow etc
can i reduce this by use of some kind of wildcard or that
ie edinburgh* so that i can just have one line
sorry afraid my vbs skills suck
If Instr(1, strGroups, "cn=edinburgh-finance-gls", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If Instr(1, strGroups, "cn=edinburgh-payroll-gls", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
End If
If InStr(1, strGroups, "cn=edinburgh-claims-gls", 1) Then
WsHNetwork.MapNetworkDrive "y:", "\\server\shared"
and then say similar for glasgow etc
can i reduce this by use of some kind of wildcard or that
ie edinburgh* so that i can just have one line
sorry afraid my vbs skills suck