VBS help

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
 
M

Matthias Tacke

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.
 
A

Aaron

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.
 
M

Michael Herz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top