Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Batch file to open multiple browsers

25 Jun 2014   #1
newuser

W7RC
 
 
Batch file to open multiple browsers

Hello, I need 10 different browsers open and after some searching found a way to write a batch file which worked but with a couple of problems.

The problem is it opens them all at once and several of the browsers crash. So I tried adding a ping after each one as follows:

@echo off
start /D "C:\Program Files (x86)\Google\Chrome\Application" chrome.exe
PING 127.0.0.1 -n 1 -w 3500 >NUL
start /D "D:\Program Files (x86)\SRWare Iron" iron.exe
etc etc etc

but they all still open at the same time, search gave other options like using "delay" but every other option I tried didn't work either.

The other problem is that the browsers that don't crash are not responsive, they just sit there with a blank page until a "page unresponsive" kill window pops up.

Even if I change the file so it is only a single line opening a single browser, it will open the browser and will say loading in the tab but nothing will happen. I have the windows loading circle cursor and i can still click on things but even if I say try to open the history, it will open a new tab for the history but it will just stay while until the unresponsive window pops up.

So I am unable to get a batch file to open a browser and actually load the page and am also unable to get it to open multiple with a delay in between each. Any help would be appreciated.


My System SpecsSystem Spec
.

29 Jun 2014   #2
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Welcome back newuser The way I usually see it written is

ping -n 1 127.0.0.1

Not sure if that makes a difference.

Believe at least you want the ping time to be 11

@echo off
start /D "C:\Program Files (x86)\Google\Chrome\Application" chrome.exe
PING 127.0.0.1 -n 11 -w 3500 >NUL

Quote:
When you use start like this ("title" can just be 2 quotes "" but cannot be left out) start "title" "program.exe" then the script starts program.exe and then returns at once, leaving program.exe running. So now you want to wait for a period of time before starting the next program. Ping can provide that delay and works with all versions of Windows. 127.0.0.1 is the IP address of the same computer that the script is running on. Its name is localhost. The ping command can take a parameter -n followed by a number which is the number of times to ping. The standard ping interval is 1 second. So ping -n 11 sends the first request and it gets a reply immediately, waits one second, sends the next request, gets an immediate reply, and so on – for the ten requests after the first. So to localhost those 11 times takes exactly 10 seconds. We redirect the output to nul so we don't see the ping command or its output on the screen.
Source

A Guy
My System SpecsSystem Spec
Reply

 Batch file to open multiple browsers




Thread Tools





Similar help and support threads
Thread Forum
I need a batch file to open a random file within a certain folder/path
I want a batch to select and open a random link file in a folder i have. All the links are music videos I like to listen to, and I kind of want to just have an option for 'surprise me!'. I can change the file names if I have to, and I have a basic batch file ability. I know the simple commands,...
General Discussion
Opening multiple URLs in new tabs using batch file
Well my forum friends, I'm messing around with batch files again. So, I've created a batch file to open various programs, of which are multiple webpages using IE8. . Here's what I have so far specifically for the Internet: rem Internet cd %windir%\system32 start /d "C:\Program Files\Internet...
Browsers & Mail
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
batch file open file for program in the startup folder
I have a computer that is a drone specifically for an outside LED sign. This computer is designed to never shut off and doesn't have any other program on it besides Operating System and the sign software. I need to create a batch file that I can place in the "start-up" folder that will open the...
General Discussion
Batch File to Open ALL Links in Folder
I have a few LNK files in the same folder and would like to write a batch file that opens all of these links without explicitly having each link listed in the batch file. Is there a way to open all links in one folder? I would presume so, considering Windows has for the most part always had a...
General Discussion
Open Multiple Files one click - simple bat/batch file
Hey, I have a simple batch file to load multiple files with one click, but it's not working. When I run it, it simply very quickly pops up the cmd dialog, which quickly disappears, and nothing is loaded. I've tried 'running as administrator' - same problem. File is xxxxx.bat
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 18:48.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App