You're forgetting to close the if-statments.

Code:
 
Dim $REGkey, $wr
$REGkey ="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"

$wr=WRITEVALUE($REGkey,"HideFileExt","00000000","REG_DWORD")

If InGroup("urfcu-tech")
USE T: "\\fileserv\dept\tech$"

If AddPrinterConnection ("\\unity\brotherh") = 0
? "Added printer connection...."
endif

If SetDefaultPrinter ("\\unity\brotherh") = 0
? "Set default printer to \\unity\brotherh"
endif
Endif

IF INGROUP("urfcu-cs")
USE S: "\\fileserv\cardsource"
EndIf

IF INGROUP("Domain Users")
USE P: "\\fileserv\apps\apps"
EndIf



Edited by ewook (2006-02-24 01:41 PM)