Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tracking log file time stamp

Status
Not open for further replies.

billbose

Programmer
Jan 15, 2001
66
US
open file for read

while file is true {

( if line =~ 09/02 ) >>> execute this statement once in this loop

start writing line to temp.txt

if line =~ 09/03 { break }


}

Is this possible in vbscript
 
If you want to get a chunk of data from a file, then look at the documentation for:

FileSystemObject
Do While Loops
Exit Do Function
Regular Expressions
InStr function

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top