Convert your text file into an .INI fiel and use READPROFILESTRING, it'll greatly reduce the lines of code and make it easier to code.

For example:
code:
;exclude.ini
; exclude the PC if value=1
[Exclude]
PC-1=1
PC-2=1
PC-3=1
PC-4=0

code:
IF VAL(READPROFILESTRING(@ldrive+'\uk-scripts\exclude.ini','Exclude',@WKSTA))=1
; this computer gets excluded
; exit the script gracefully
EXIT 0
ELSE
; do what needs to be done
ENDIF



[ 25 July 2002, 23:59: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.