lol ok last question I promise...now I need to redirect the output of the psloggedon to a file...I just can't figure out how the redirectoutput() command works:

Code:

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