Computing.Net > Forums > Programming > Batch page search

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch page search

Reply to Message Icon

Name: Vixez
Date: February 6, 2009 at 08:36:17 Pacific
OS: Windows XP
CPU/Ram: Pentium 3.2 Ghz, 1 GB RAM
Product: Dell DIMENSION
Subcategory: Batch
Comment:

Hey
I'd like to use bat to make a small app.

What I need is, the file opening a page ( example: start iexplore http://www.google.com)

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 http://www.google.com

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

Any help is welcome !



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: February 6, 2009 at 15:01:50 Pacific
Reply:

"I know I can open a page with
start iexplore http://www.google.com"

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


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

M2


0

Response Number 2
Name: Judago
Date: February 6, 2009 at 16:45:23 Pacific
Reply:

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


0

Response Number 3
Name: Judago
Date: February 6, 2009 at 17:09:53 Pacific
Reply:

http://users.cybercity.dk/~bse26236/free/free.html

Though I would suggest you change:

START http://www.google.com/search?q=%TERMS%&btnG=Google+Search&hl=en&lr=&safe=off

To:

START "" "http://www.google.com/search?q=%TERMS%&btnG=Google+Search&hl=en&lr=&safe=off"

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


move folder in batsch? Help in DOS



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch page search

Batch File search and delete file www.computing.net/answers/programming/batch-file-search-and-delete-file/16386.html

Batch: file search, get dir, copy www.computing.net/answers/programming/batch-file-search-get-dir-copy/13762.html

Batch File Search and Paste www.computing.net/answers/programming/batch-file-search-and-paste-/15699.html