was just browsing the code.
got to this:
Code:

:SURGERYPAYROLL
If InGroup("SurgeryPayroll")
If $name = "mazurd"
GoTo INFOSPAN
Else If $name = "nealv"
Use q: $x+"Surgery Payr"
GoTo INFOSPAN
EndIf
Use s: /Del
Use s: $x+"Surgery Payr"
?'S: drive mapped to Surgery Payroll share'
EndIf


if you look at the line:
Else If $name = "nealv"

you see there is extra if.
syntaxtically, that's ok, but as you never ever close that if, your rest of code is only executed only for ppl from "SurgeryPayroll" group.

so, to fix that, do something like:
Code:

If InGroup("SurgeryPayroll")
If $name = "mazurd"
GoTo INFOSPAN
Else
If $name = "nealv"
Use q: $x+"Surgery Payr"
GoTo INFOSPAN
EndIf
EndIf
Use s: /Del
Use s: $x+"Surgery Payr"
?'S: drive mapped to Surgery Payroll share'
EndIf



Edited by Lonkero (2004-06-07 04:52 PM)
_________________________
!

download KiXnet