Google Search Results
the first thought is to use the InStr function to see if the word "Error" appears anywhere in each line of the log file; you could then keep a running tally of the number of times you found the word, a technique remarkably similar to the one we demonstrated in yesterday’s column. That was a good idea, but, as you discovered, there was one major flaw in the plan: technically your log file has only one line in it. Consequently, your script always reported that it found one instance of the word Failure, regardless of how many instances actually existed. "But I’m stuck," you wrote, "because there’s no way to break this single line into multiple lines."
Posted in VBScript


daniva




Recent Comments