I think the rigt way is :

IF Open(1, "\uk-scripts\exclude.txt") = 0 ; better is the complete URL like \\SHARENAME\XX
$x = Readline(1)
WHILE @ERROR = 0
IF $x = "@WKSTA"
CLOSE(1)
GOTO END
EndIf
$x = Readline(1)
LOOP
ELSE
$Message = "It works!"
ENDIF
:END

You can write in the textfile a List with Workstations

-- Donald --