Each IF requires a corrsponding ENDIF. This is explained in the KiXtart Manual.
Thus
code:
$rc=SetConsole('HIDE')
If INGROUP('Office Staff')
USE P: /delete
USE P: '\\josmith1\Jo Smith & Associates\Public'
USE O: /delete
USE O: '\\josmith1\Jo Smith & Associates\OfficeStaff'
USE S: /delete
USE S: '\\josmith1\Jo Smith & Associates\ScanDocs'
USE N: /delete
USE N: '\\josmith1\Jo Smith & Associates\Temp Employees'
ENDIF
If INGROUP('Call Center')
USE P: /delete
USE P: '\\josmith1\Jo Smith & Associates\Public'
USE T: /delete
USE T: '\\josmith1\Jo Smith & Associates\CallCenter'
USE S: /delete
USE S: '\\josmith1\Jo Smith & Associates\ScanDocs'
USE N: /delete
USE N: '\\josmith1\Jo Smith & Associates\Temp Employees'
ENDIF
If INGROUP('CCAdmin')
USE J: /delete
USE J: '\\josmith1\Jo Smith & Associates\Jo Doc'
USE P: /delete
USE P: '\\josmith1\Jo Smith & Associates\Public'
USE T: /delete
USE T: '\\josmith1\Jo Smith & Associates\CallCenter'
USE S: /delete
USE S: '\\josmith1\Jo Smith & Associates\ScanDocs'
USE M: /delete
USE M: '\\josmith1\Jo Smith & Associates\Accounting'
USE N: /delete
USE N: '\\josmith1\Jo Smith & Associates\Temp Employees'
ENDIF
If INGROUP('Office Admin')
USE J: /delete
USE J: '\\josmith1\Jo Smith & Associates\Jo Doc'
USE P: /delete
USE P: '\\josmith1\Jo Smith & Associates\Public'
USE O: /delete
USE O: '\\josmith1\Jo Smith & Associates\OfficeStaff'
USE S: /delete
USE S: '\\josmith1\Jo Smith & Associates\ScanDocs'
USE M: /delete
USE M: '\\josmith1\Jo Smith & Associates\Accounting'
USE N: /delete
USE N: '\\josmith1\Jo Smith & Associates\Temp Employees'
ENDIF
If INGROUP('President')
USE J: /delete
USE J: '\\josmith1\Jo Smith & Associates\Jo Doc'
USE P: /delete
USE P: '\\josmith1\Jo Smith & Associates\Public'
USE S: /delete
USE S: '\\josmith1\Jo Smith & Associates\ScanDocs'
USE M: /delete
USE M: '\\josmith1\Jo Smith & Associates\Accounting'
USE N: /delete
USE N: '\\josmith1\Jo Smith & Associates\Temp Employees'
EndIf
EXIT
Also, please take a look at the FAQ Forum and read those posts as they contain valuable information for you. They will solve a couple fo other problems that are present in your code.
You might also want ot make yoiurself familiar with the differences between IF-ENDIF and SELECT-CASE-ENDSELECT. You should also consolidate your mappings as you're mapping the same drives for multiple groups.
[ 25. February 2003, 19:09: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.