How to get the expected error output from log file


Hi ,

I’m in dilemma. Let me explain the requirement step by step:
1.on running batch file i get 10 log files(.txt) the log file one by one and check the recent error. the entire error msg(it might varies 10 line or 8 line or sometime different error itself with 4 lines)
4. and paste into word doc.

able to do step 1,2,4.

please someone let me know how to do step 3 .



I have attached an example that might help you.

readLogFile_Example.xaml (10.8 KB)

What does: Reads line by line and If have information in the line, concatenates with a string variable. If not, break the loop and go to the next file.

Hope It Helps!