; 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
; send all output to this file
$ = RedirectOutput('\\servername\sharename\filename.txt')
$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 slashes that already exist
$Target = '\\' + Join(Split($Comp, '\'), '', 3) + '\'
; 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
EndIf
$Comp = ReadLine(1) ; read the next line
Loop
Close(1)
; close the output redirection
$ = RedirectOutput('')
EndIf