I specified having it write to "c:\temp\compile.txt", but the file is never there. A few times during testing it exited without error, but usually it keeps giving the "missing comma" error for the line with the date.

Is there a way to have it write to the file each time it opens one of the user log files?

Code:
;Script Options
$SO=SETOPTION("Explicit", "ON")
$SO=SETOPTION("NoMacrosInStrings", "ON")
$SO=SETOPTION("NoVarsInStrings", "ON")
$SO=SETOPTION("WrapAtEOL", "ON")
BREAK ON
Dim $ServArray, $Element, $File, $Line, $, $R, $2, $3
$ServArray = "x:","y:"
For Each $Element in $ServArray
For Each $File in DirPlus($Element+"\location\data","/s1 /a-d /m logfile.txt")
Open(1,$File)
$R = Readline(1)
While @Error = 0
$2 = Split($R," ")
$3 = Split($R[1])
IF $3[0] = "8/1/2006"
Open (2,"c:\temp\Compile.TXT",5)
While @Error = 0
Writeline (2,$R+@crlf)
Readline(1)
Loop
EndIf
$R = Readline(1)

Close(1)
Close(2)
Next
Next

;Function
EndFunction

_________________________
Be kind; each person is fighting his own private war.