VBS help

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

I hope this is the right place to post this.

I would like to write a VBS script that scans through my IIS log(text file)
for an ip address and copy and paste that line into a new file.
so if I open the new file all i would it is activity from that ip address.

Thanks for your help

Aaron
 
Michael Herz said:
how about the cmd solution ;-)

find "192.168.1.111" log.txt>out.txt
Or without dashes and the file name in the output
find "192.168.1.111" <log.txt>out.txt

BTW a crossposting to 2 unrelated groups when there is:
doesn't seem appropriate.
 
sorry

Matthias Tacke said:
Or without dashes and the file name in the output
find "192.168.1.111" <log.txt>out.txt

BTW a crossposting to 2 unrelated groups when there is:
doesn't seem appropriate.
 
Matthias Tacke said:
Or without dashes and the file name in the output
find "192.168.1.111" <log.txt>out.txt

Well thank you very much! That's bugged me for a long time. Don't laugh but
I've actually taken the step of filtering those 2 lines out with a for loop
and a skip command.

Mike
 
Back
Top