bat file opening multiple IE windows

I'm trying to open multiple IE windows and enter the same text and press <enter> on each. Here's an example with what I have so far.

REM Open
@echo on
start http://10.1.1.1
ping 1.1.1.1 -n 5 -w 1000 >nul
@echo password
start http://10.1.1.2
ping 1.1.1.1 -n 5 -w 1000 >nul
@echo password
@echo off
REM end

I have multiple shelves with 12 IP's each that I have to log into to retrieve data. I'm just trying to automate the login part. Each unit has an IE based webpage that you can use to admin the device.

What I have above gets close, but instead of inserting "password" on the IE page at the cursor, it inserts it in the CMD window running the script.

Thanks,
Pitt

You are brave to try this but this approach won't fly. The started application is completely separate from the batch file.

I have automated similar work by writing a PERL script that uses the SAMIE module. What the module does is install a call back in IE. Whenever IE concludes that a page has loaded, it returns control to the PERL program. The PERL program can then interact with the DOM object currently in IE, like reading a particular bit of data. The PERL program can then do something with the data, like writing it to a log file.

It is actually fun to watch the IE screens pop up when the process runs. Of course, I should be doing other work, not watching the automation run.

Thx for the reply, but I figured out how to do what I needed with a .vbs script.

If I was on my work laptop, i'd post a snip-it of the code used as an example for others.

That's how I figured it out, I found a snip-it similair to what I needed and tailored it to my application.

I'll try to remember on monday to add the code...

Thx again.

Now if anyone has an example of .vbs or PERL that can parse data and then stick it in an excel spreadsheet, i'd be a happy camper. :smiley: