Hello all,
Last Thursday or Friday, I started getting calls about some people's network drives not getting mapped. I ran the script in debug mode, and I found that the script is exiting before it's completed. Right in the middle of the script, for no good reason. The whole script is to map an S: drive depending on which department you are in. This script has worked for about a year or so without a hitch, and now it's exiting at this code:
Code:
:MARKETING
If InGroup("MARKETING")
Use s: $x+"marketing"
?'S: drive mapped to Marketing share'
If InGroup("Residential Services")
Use r: /Del
Use r: $x+"Residential"
?'R: drive mapped to Residential share'
GoTo TREASURY
EndIf
EndIf
The reason for the goto is to skip the very next If InGroup line, as there is a person in Marketing that is also in Residential Services, and mapping two S: drives isn't productive.
This particular code happens to be on line 125, not the problem in my opinion. Any ideas?