; not only good practice, but needed because you are using "C$" in a string
; to specify the admin share!
$ = SetOption('NoVarsInStrings', 'On')
If Open(1,"SymForm.txt",2) = 0
$Comp = ReadLine(1) ; read the first line
While Not @ERROR ; loop until error occurs (End of File)
If $Comp ; process if not blank
; This wraps the Computer name in \\ and \, removing any that already exist
$Target = '\\' + Join(Split($Comp, '\'), '', 3) + '\'
'Processing ' $Comp ':' Exist($Target + 'C$\Program Files\SymForm API\SymStoreMod.dll') ?
; send all output to this file
$ = RedirectOutput('\\server\share\filename.txt')
; this print statement is common to all processing
$Comp Chr(9)
If Exist($Target + 'C$\Program Files\SymForm API\SymStoreMod.dll')
'File Exists' ?
Else
'File Missing' ?
EndIf
$ = RedirectOutput('')
EndIf
$Comp = ReadLine(1) ; read the next line
@SERROR ?
Loop
Close(1)
; close the output redirection
EndIf