Batch file to open multiple browsers

newuser

New member
Local time
6:47 PM
Messages
2
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 Computer

OS
W7RC
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

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 Computer

Computer type
PC/Desktop
OS
Windows 10 Home x64
CPU
INTEL Core i5-750 Quad-Core 3.37GHz
Motherboard
ASUS P7P55D
Memory
HyperX Fury Black Series 8GB (2 x 4GB) 1866Mhz
Graphics Card(s)
EVGA GeForce GTX 750 Superclocked 1GB 128-Bit GDDR5
Monitor(s) Displays
LG 32MA68HY 32" IPS
Screen Resolution
1920 x 1080
Hard Drives
Samsung 840 Evo 120GB, SEAGATE 500GB Barracuda® 7200.12, SATA 3 Gb/s, 7200 RPM, 16MB cache
PSU
ANTEC TruePower New TP-550, 80 PLUS, 550W
Case
ANTEC Three Hundred Illusion
Cooling
COOLER MASTER Hyper 212 Plus, 4 x 120mm 1 x 140mm Noctua's
Internet Speed
85 + Mbps
Antivirus
Avast
Browser
Vivaldi
Back
Top