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