I liked ghostdog74 response because after discussing with our CIO I have found that he wanted this in .vbs and after searching some he informed me that there was another way of doing this since we have our .txt file as a delimited text, we can count tabs to find the RXC number.
Here is an example of what I have found from
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_24081716.htmlI have already edited this script to point to the group number second line 4th tab:
Call TwoDimensionArrayTest
Sub TwoDimensionArrayTest
' Version 1.0
' Writtem by Krystian Kara
' Dated 25-Jan-2009
Dim fso
Dim oFile
Dim arrline
Dim arrItem
Dim i
Dim arrMain()
Dim sFileLocation, strResults
Const forReading = 1
' The file contains on each line:
' Text1 (tab) Text2 (tab) Text3 (tab) Text4
' Text5 (tab) Text6 (tab) Text7 (tab) Text8
'etc etc
Set fso = CreateObject("Scripting.FileSystemObject")
sFileLocation = "C:\ArrayTest.txt"
Set oFile = fso.OpenTextFile(sFileLocation, forReading, False)
Do While oFile.AtEndOfStream <> True
strResults = oFile.ReadAll
Loop
' Close the file
oFile.Close
' Release the object from memory
Set oFile = Nothing
' Return the contents of the file if not Empty
If Trim(strResults) <> "" Then
' Create an Array of the Text File
arrline = Split(strResults, vbNewLine)
End If
For i = 0 To UBound(arrline)
If arrline(i) = "" Then
' checks for a blank line at the end of stream
Exit For
End If
ReDim Preserve arrMain(i)
arrMain(i) = Split(arrline(i), vbTab)
WScript.Echo i & ",0 contains: " & arrMain(i)(0)
WScript.Echo i & ",1 contains: " & arrMain(i)(1)
Next
WScript.Echo arrMain(1)(3)
End Sub ' TwoDimensionArrayTest
Only thing I need help with is it prompts for what it finds (I don't need or want a prompt window) and It does not rename the file from what it found nor do I think that this script will go through all the .txt files in the directory. Well at least now we know what we are looking for.
Sorry for not specifying in original question but thanks for your posts.