Batch page search

February 6, 2009 at 08:36:17
Specs: Windows XP, Pentium 3.2 Ghz, 1 GB RAM
I'd like to use bat to make a small app.

What I need is, the file opening a page ( example: start iexplore

Then I want the bat to search for a specific text in the opened page (like "Search") and then for the next step it should go like :

1) If it finds it --> Creating a log file (txt) with some text like "Pass" or something I can change later on.
2) If it doesn't find it (here I have two options)
Option 1 : Write a log file saying you failed the test
Option 2 : Opening a webpage and writing a log file with some text.

I know I can open a page with
start iexplore

But I don't know how to do the rest.

Any help is welcome !

See More: Batch page search

Report •

February 6, 2009 at 15:01:50
"I know I can open a page with
start iexplore"

Yes, but I see no way to act on it with a bat.

If at first you don't succeed, you're about average.


Report •

February 6, 2009 at 16:45:23
I remember reading that it is possible to put together the search string url for google and start that. I'll have a look to see if I can find it....

Report •

February 6, 2009 at 17:09:53

Though I would suggest you change:



START "" ""

Because of the meaning of the ampersand to cmd.exe(as opposed to

Report •

Related Solutions

Ask Question