Let's say we are working with a log file that contains some text like
Application log file
Number of licenses in use
===============
40
This text will be in a log file with hundreds of lines in it and may not be at the same line every time.
A couple of consistancies are that "Number of licenses in use" will always exist somewhere in the file and
"=================" will always be on the line below it.
I am interested in the line below that, which contains the number of licenses in use, "40".
In vbscript, I look for the "Number of licenses in use", then I use skipline to go to the line I am interested in,
which in this case would be the line which contains the string "40".
I then pass this value to a variable and do what I want with it.
Does this make sense?