0
Answer

Search log files on multiple machines.... How?

jake-newton

jake-newton

20y
2k
1
I need to write a loop that will check a certain log file on about 100 machines and then in a list box print out the machine name, the last instance of the word "backup" in the log and the date following "date=" in the log. Here is an example of the log: So what I need is: LOOP: Check the log file at \\machine1\C$\Windows\System32\Log\backup.log all the way through \\machine99\C$\Windows\System32\Log\backup.log Find last instance of the word "BACKUP" and "date=" in the log and put that into a list box or some other form of output. If "BACKUP" doesn't exist just print "No" in the listbox next to that machine name. Hope this makes sense. Thanks in advance, Jake