I need a batch file that will open multiple web pages in one window in Internet Explorer each in separate tabs with the last tab on the right being the active one.
The actual purpose for this is because of a strange action that is happening for a webpage that I am working with that is opened via a url with a number parameters via Oracle code. When the page loads in Internet Explorer, the url address box changes to a simplified form of the url dropping out the parameters.The Oracle code periodically issues a page refresh but it then refreshes with the url without the parameters so the page does not get displayed properly. As a workaround, I discovered that if you open the same url again in another tab, the parameters remain in the url box so it will get refreshed properly. Therefore, I need a script to open the url twice in separate tabs but have the second tab as the active tab.
Can anyone please provide a batch file that can open multiple tabs and set the last (right-most) tab active (foreground)?
If this cannot be done with a batch file, can somebody recommend a script (vb or java) that can do this?
Thanks to anyone who can help me out.
Batch file to open multiple tabs in Internet Explorer
Moderator: DosItHelp
Re: Batch file to open multiple tabs in Internet Explorer
Can you create a batch file, and call that from the oracle code?
This will open the default web browser with the page.
Code: Select all
@echo off
start "" "http://www.website.com/with the rest here"
This will open the default web browser with the page.
Re: Batch file to open multiple tabs in Internet Explorer
foxidrive: Thank you for your response.
I am the user of the Oracle code (not the developer) so I cannot modify the Oracle code. Somebody else is working on that. I am looking for a temporary fix that allows me to get around this problem but opening the 2nd tab and setting it active. That way I can set the computer to automatically startup and run this script.
I am the user of the Oracle code (not the developer) so I cannot modify the Oracle code. Somebody else is working on that. I am looking for a temporary fix that allows me to get around this problem but opening the 2nd tab and setting it active. That way I can set the computer to automatically startup and run this script.
Re: Batch file to open multiple tabs in Internet Explorer
Assuming Internet Explorer is the default web browser, try this. IE will have to be configured to open in TABS and not in separate windows.
I have doubts that it will work as the URL refreshing may be controlled by the oracle side, which could be the problem, but get back to us and let us know.
I have doubts that it will work as the URL refreshing may be controlled by the oracle side, which could be the problem, but get back to us and let us know.
Code: Select all
@echo off
start "" "http://www.website.com1/with the rest here"
ping -n 2 localhost >nul
start "" "http://www.website.com2/with the rest here"
ping -n 2 localhost >nul
start "" "http://www.website.com3/with the rest here"
ping -n 2 localhost >nul
start "" "http://www.website.com4/with the rest here"
ping -n 2 localhost >nul
start "" "http://www.website.com5/with the rest here"
-
- Posts: 233
- Joined: 21 Nov 2010 08:07
- Location: At My Computer
Re: Batch file to open multiple tabs in Internet Explorer
If you want to open multiple pages that automatically load up every time you start Internet Explorer..
Or if you want to assign "multiple secondary start pages" via script file..
http://blogs.technet.com/b/heyscripting ... r-7-0.aspx
Code: Select all
@echo off
set primary=http://www.bing.com/
set secondary1=http://www.dostips.com/
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Start Page" /t REG_SZ /d "%primary%" /f
reg add "HKCU\Software\Microsoft\Internet Explorer\Main" /v "Secondary Start Pages" /t REG_MULTI_SZ /d "%secondary1%" /f
Or if you want to assign "multiple secondary start pages" via script file..
http://blogs.technet.com/b/heyscripting ... r-7-0.aspx