The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem in opening UNIX file in Windows arunkumar_mca UNIX for Dummies Questions & Answers 4 09-18-2008 12:23 PM
Opening multiple documents at once Orange Stripes Shell Programming and Scripting 2 05-12-2008 11:56 AM
Opening a Unix File in Windows. a439511 UNIX for Dummies Questions & Answers 6 03-07-2008 05:13 AM
Deleting lines inside a file without opening the file toms Shell Programming and Scripting 3 09-24-2007 07:58 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-27-2009
Pitt Pitt is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
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
  #2 (permalink)  
Old 04-03-2009
eskiphill4 eskiphill4 is offline
Registered User
  
 

Join Date: Oct 2008
Location: Pacific Northwest
Posts: 12
Tools that will work

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.
  #3 (permalink)  
Old 04-03-2009
Pitt Pitt is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 2
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.
Sponsored Links
Closed Thread

Bookmarks

Tags
unresolved, unresolved for weeks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0