Hello everyone.. Its my first post.. So hopefully I won't sound stupid.. LOL
I would like to create method with the following lines and be able to reference the lines within an IF Then statement using VBS
For i = 0 To UBound(aryDeptPath)
If InStr(strGroup, "cn=" & Lcase(aryDeptPath(i,0))) then
objNetwork.MapNetworkDrive strDeptDriveLetter, aryDeptPath(i,1)
The rest of my script work perfectly. I would just like to clean it up a little and I believe if I can create a method and reference it. I will save some lines of code.
Thanks in advance