Variable from multiple lines of text

August 24, 2009 at 12:27:35
Specs: XPSP2
Posted a much more vague version of this over in xp general, but I think I better know what I want:

I have two text files, text1 and text2, each file contains multiple short lines of text, like this:

I would like to read the first line of text1 and use that text to search for the same string in text2. If the string is NOT found, I would like to stop and call an external batch file. If the string IS found, drop to the second line of text1 and repeat the search, repeating the process until another unique string is found or eof is reached.


See More: Variable from multiple lines of text

Report •

August 24, 2009 at 18:06:54
Got it solved. The text files were just directory listings, so I just needed to use for /f against the ACTUAL directories and it runs fine.

Report •
Related Solutions

Ask Question