|The easiest way I can think to accomplish what you want is to use a VBScript, if you can run a batch file you can run a VBScript. All you have to do is copy the following, the same way you would do a batch file, except the file extension instead of being .bat will be .vbs Then the only change you will have to make is on the first line telling the script where your test file is.|
strFileName = "c:\text.txt"
Set objFS = CreateObject("Scripting.FileSystemObject")
StrContents = Split(objFS.OpenTextFile(strFileName).ReadAll, vbNewLine)
Set objTS = objFS.OpenTextFile(strFileName, 2)
For Each strLine In StrContents
If (Mid(strLine,23,1) = "(") Then
objTS.WriteLine "FLIGHT\" & strLine