'##E# '##B# Auto a%, l$ Open WinDir + "\Logs\CBS\CBS.log" for Input As # 1 Open "sfcdetail.txt" for Output As # 2 Do Until EOF(# 1) ' Print l$ Line Input # 1, l$ If InStr(l$, "[SR]") > 0 Then Print # 2, l$ EndIf Loop Close a% = Exec(WinDir + "\notepad.exe", "sfcdetail.txt")