I want my batch file to find a string in a file and return it to the next line in my batch file.
How can I do this? I've googled over and over but can't get the specific answer I need with the command to enter into my batch file. So for example
I have a document on desktop and it's called "PhoneNumbers.txt" And I want my batch file to find the string I'm searching for from the file and return it to my batch file for next step of batch file.
Desktop file is called "phonenumbers.txt" and inside is a list of people I know and their phone number. I want my batch file to search for a string say "Amanda P" and return only her number to my batch file so it enters the returned number into the line like
ECHO Amanda's phone number is __________
Ok so I can't explain it any easier or better so I hope someone understands and can help me with the exacr words to type into my batch file?