So here's what I have:
Code:

if open(1,"c:\computers2.txt",2) = 0
while @ERROR = 0
$line = readline(1)
$computer = Split($line,",")[0]
SHELL "C:\ALIVE /repeat=2 " + $computer
If not @ERROR
shell "C:\pstools\psloggedon \\" + $computer
EndIf
LOOP
CLOSE (1)
Endif



Problem is when alive returns an errorcode when a computer isn't alive, the entire loop ends. Anyway around that?


Edited by Niro (2005-10-07 09:25 PM)