Opening Multiple Browsers at Once

Yesterday I had posted about Opening Multiple Files using a Batch File. A user mailed me asking if it was possible to open multiple browsers at once using the same technique. The answer is Yes and here’s how to do so:

Open Notepad and copy and paste the following lines below:

@echo off
Start "IE" "C:\Program Files\Internet Explorer\iexplore.exe"
Start “Firefox” "C:\Program Files\Mozilla Firefox\firefox.exe"
Start "Chrome" "C:\Users\Suprotim\AppData\Local\Google\Chrome\Application\chrome.exe"
Start "Safari" "C:\Program Files\Safari\safari.exe"

Save the notepad file with the .bat extension. Now to open all these browsers at once, just execute the .bat file by double clicking it

Note: To know the location of the browser .exe on my machine, I used a simple technique of checking the properties of the browser shortcut and copying the path from the ‘Target’ field. For example: Here’s how the path of the Internet Explorer (IE) .exe can be obtained

image






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

No comments: