bat file opening multiple IE windows


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions bat file opening multiple IE windows
# 1  
Old 02-27-2009
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  
Old 04-03-2009
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  
Old 04-04-2009
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. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GZ file not opening in windows

I am zipping a file in unix and then sending it to windows. buyt when i try to open it with 7zip software. it throws an error FILE IS BROKEN (3 Replies)
Discussion started by: rafa_fed2
3 Replies

2. Windows & DOS: Issues & Discussions

Start windows application (.bat) from Unix

How can I start an application sitting on a windows machine (XP) from Unix shell script (AIX server) ? (6 Replies)
Discussion started by: pkan
6 Replies

3. Shell Programming and Scripting

Writing Bash shell scripts corresponding to windows bat files

Experts, I am newbie in shell scripting. I want to write Bash shell scripts corresponding to windows bat files. I have installed cygwin at c:\cygwin and i am trying to crate the sh file using vi editor. i am not able to understand how to use linux/unix convention for the code. following is my... (15 Replies)
Discussion started by: rajuchacha007
15 Replies

4. Shell Programming and Scripting

Create Bash shell scripts corresponding to windows bat files

Experts, I am newbie in shell scripting. I want to write Bash shell scripts corresponding to windows bat files. I have installed cygwin at c:\cygwin and i am trying to crate the sh file using vi editor. i am not able to understand how to use linux/unix convention for the code. following is my... (1 Reply)
Discussion started by: rajuchacha007
1 Replies

5. UNIX for Dummies Questions & Answers

Problem in opening UNIX file in Windows

Hi , I am having file in unix with size (386796649) , below is the output of ls command in UNIX. I have ftp'ed the file to my windows machine . When i tried to open the file it is not opening . Why it is so . Is there is size limit. -rw-rw-rw- 1 p10 pQQ 98473 Sep 17 17:20... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

6. UNIX for Dummies Questions & Answers

Opening a Unix File in Windows.

Hi folks, I have a file in unix box as abc.xls and i have a file in windows box as abc_win.xls. Now if i open the file abc_win.xls which is in windows, i have to get the datas of the file abc.xls which is in unix. Everytime i opens the abc_win.xls file, the updated datas of file abc.xls... (6 Replies)
Discussion started by: a439511
6 Replies

7. UNIX for Advanced & Expert Users

help needed to connect to windows from unix and run .bat file

Hi Can anyone tell if it is possible to connect from Unix to t a remote windows environment and run a .bat script. Do SSH/SFTP... serve my purpose..if s how.... if not which commands or scripts will help with my requiremnt. points on this are greatly honoured. Thanks in advance. :) (1 Reply)
Discussion started by: lakshmis10
1 Replies

8. UNIX for Dummies Questions & Answers

Q about windows bat files

Hi, can you run a windows bat file or a VBscript from a shell script? #!/bin/sh PATH=/ $PATH/test.bat (1 Reply)
Discussion started by: cmac
1 Replies

9. Windows & DOS: Issues & Discussions

Urgent Need for Assistance: Triggering Windows bat files from UNIX

Hello, Is there a way to trigger a Windows bat file or program on a different machine from a different UNIX server using KSC file? I hope you can assist me with this. Thanks! (0 Replies)
Discussion started by: punyenye
0 Replies

10. Shell Programming and Scripting

executing *.bat file on windows from Unix box via ftp command

I have created get_list.bat file containing following line: dir /B /O-d >file_list.txt I am executing ftp command from Unix box and transferring get_list.bat file to windows server. In my next ftp command I am trying to execute this test.bat file by entering this line: get_list or by... (9 Replies)
Discussion started by: alx
9 Replies
Login or Register to Ask a Question