[Confused] [Confused] [Confused]

What I wanted to know is what the return value of the READPROFILESTRING is before you even do the IF comparison. Therefore, the modified script would be something like this:
code:
$a=READPROFILESTRING(@ldrive+'\uk-scripts\exclude.ini','Exclude',@WKSTA)
IF @ERROR
? 'Error encountered : '+@ERROR+' - '+@SERROR
ELSE
? 'Value = '+$a
ENDIF
IF VAL($a)=1
; this computer gets excluded
; exit the script gracefully
EXIT 0
ELSE
; do what needs to be done
ENDIF

I hope this makes it more clear.

[ 26 July 2002, 20:10: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.