OK, new attempt with code:
code:
  
Break on
$tempfile = "C:\templist.txt"
$x = 0
$line = ""
Del $tempfile
$rc = ReDirectOutput($tempfile)
Use list
$rc = ReDirectOutput("")
If Open(1,$tempfile) = 0
While @ERROR = 0
if InStr($line, "IPC$$") = 0
$line = $line + ReadLine(1) + Chr(10) + Chr(13)
endif
Loop
$rc = Close(1)
EndIf

As you can tell, I threw in the $$. Turns out when I did a mini-test where it just echoed to screen and not into a variable the single $ worked fine. [Eek!]

[ 14 June 2002, 16:45: Message edited by: FTPMonster ]