|I wonder if someone can help me with this?|
I need a way in a batch file to assign a variable to a string in a text file.
My text file looks like below (a user name - a space - then a postcode):
Basically I know I can use the findstr command to search for the user but I need some way to get findstr to look at the postcode entry for that user then assign it to a variable in the batch file. I'm sure there must be a way to make findstr find the space after the user and then look at the postcode.
Any help greatly appreciated.