mmm...
donalds suggestion was pretty good.

something like:
$nul=open(1,@ldrive+"\uk-scripts\exclude.txt")
$machine=readline(1)
while @error = 0
if @wksta = trim($machine)
"wksta is to be excluded, quitting..."
exit 0
endif
$machine=readline(1)
loop

this continues execution if not in list of excluded machines. if in the file, exits.

cheers.
_________________________
!

download KiXnet