It needs to be done like this....

Code:

If ComputerInGroup(t202)
use t: "\\tessende-llser\wintoets"
Endif


Function ComputerInGroup($group,optional $Domain)
Dim $oGrp
if not $domain $domain=@domain endif
$oGrp = GetObject("WinNT://" + $domain + "/" + $group + ",group" )
if @error exit 1 endif

if $oGrp.IsMember("WinNT://" + $domain + "/" + @wksta + "$$" )
$ComputerInGroup=1
else
$ComputerInGroup=0
endif
endfunction



If you don't add the function in the code, then it has nothing to reference against, and it wont work.
_________________________
Today is the tomorrow you worried about yesterday.