5 pts.
 VBScript to file compare
Is there a way to make a VBScript that will get a word from FileA.txt and look for it in FileB.txt. If the word(not the whole line) is found in FileB.txt, then write it in FileC.txt. 
?


Software/Hardware used:
ASKED: October 1, 2010  3:38 PM
UPDATED: April 18, 2011  5:16 PM

Answer Wiki:
VBScript has a Regular Expression object that can be used find various text based on pattern matching. If you need to see a working usage example checkout some code I have posted on my site @ <a href="http://www.code-bytes.com/Automate_WSH_VBScript_To_Delete_Or_Archive_Files.htm"> http://www.code-bytes.com/Automate_WSH_VBScript_To_Delete_Or_Archive_Files.htm</a> Note the code uses regular expressions for matching file names.... but it will work the same if you pass in the text in the file. I also have some references to Microsoft Regular Expression Syntax and Tool posted in my forum @ <a href="http://www.code-bytes.com/Forum/index.php/board,4.0.html">http://www.code-bytes.com/Forum/index.php/board,4.0.html</a>
Last Wiki Answer Submitted:  April 18, 2011  5:16 pm  by  Jmazzella   85 pts.
All Answer Wiki Contributors:  Jmazzella   85 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _