• Independent Designer
    Freelance Design & Development
  • websites for schools and academies
    Websites for Schools and Academies
  • Wide range of multimedia services
    Wide range of multimedia services
  • Get your business online
    Get your business online today
Request a free quote!
  • Your Name

    Email/Phone

    Service required

    Please input these characters
    captcha

Open website in all browsers with a batch script

An important part of website design is to make sure that a website displays correctly in all of the most popular internet browsers.

I’d like to share a little batch script I created that saves time and effort by opening a website in Internet Explorer, Firefox, Opera, Safari and IETester in one go (provided you have these browsers installed on your computer).
@echo off
set /p var= Which URL would you like to open?
start "Internet Explorer" "C:\Program Files\Internet Explorer\IEXPLORE.EXE" %var%
start "Firefox" "C:\Program Files\Mozilla Firefox\firefox.exe" %var%
start "Opera" "C:\Program Files\Opera\Opera.exe" %var%
start "Safari" "C:\Program Files\Safari\Safari.exe" %var%
start "IETester" "C:\Program Files\Core Services\IETester\IETester.exe" %var%
exit

To use this script simply copy and paste it into notepad and save it as a .bat file (eg. browsercheck.bat) then double click the batch file to use it. A window will appear that prompts you to enter the URL of your website, hit Enter and you’re away!

To add functionality to open Google Chrome it’s a little more complicated. You need to find the target location for Chrome’s executable file. This can be found by right clicking on the shortcut to Google Chrome and clicking “Properties”. Typically the final command will look like the following, with username replaced with your username:

Windows XP

start "Google Chrome" "C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome\chrome.exe" %var%

Windows Vista/Windows 7

start "Google Chrome" "C:\Users\UserName\AppData\Local\Google\Chrome\chrome.exe" %var%

This entry was posted in Tips and Tutorials and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

2 Responses to “Open website in all browsers with a batch script”

  1. Awesome tutorial. I am looking for this…

  2. Bernarda Oder says:

    very nice post, i certainly love this website, keep on it…

Leave a Reply

*

Spam Protection by WP-SpamFree

  • Testimonials

    The whole process of reviewing and updating our school web site was made very easy.The training on new software was pitched perfectly for a range of staff with differing levels of technology and we are all delighted with the outcome. I would recommend Mark Langdale's services without any hesitation.
    M.A.Cairns
    Head Teacher
    St Winefride's Catholic PrimaryMore testimonials