Computing.Net > Forums > Programming > Variable from multiple lines of text

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Variable from multiple lines of text

Reply to Message Icon

Name: obrian93
Date: August 24, 2009 at 12:27:35 Pacific
OS: XPSP2
Subcategory: Batch
Comment:

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:
P4534523
P0045823
P8830979

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.

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: obrian93
Date: August 24, 2009 at 18:06:54 Pacific
Reply:

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.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Variable from multiple lines of text

Batch search multiple lines in text file. www.computing.net/answers/programming/batch-search-multiple-lines-in-text-file/18768.html

Batch file to extract lines of text from .ini www.computing.net/answers/programming/batch-file-to-extract-lines-of-text-from-ini/19089.html

Delete first line of text www.computing.net/answers/programming/delete-first-line-of-text/13312.html