Posts Tagged ‘batch’

openallbrowsers.bat

Wednesday, January 7th, 2009

Here’s a Windows Batch file that will let you open a specific web page in all browsers. Look through it and comment out the browsers you don’t have installed.

 @echo off
echo ---------------------------
echo -- Open in all browsers  --
echo ---------------------------
:enter
echo Enter the URL:
set /p answer=URL:
echo Use "%answer%"?
set /p use=[Y/N]:
if /i "%use:~,1%" EQU "N" goto enter
REM == Opera ==
start "" "%programfiles%\Opera\opera.exe" "%answer%"
REM == Firefox ==
start "" "%programfiles%\Mozilla Firefox\firefox.exe" "%answer%"
REM == Safari ==
start "" "%programfiles%\Safari\Safari.exe" "%answer%"
REM == Internet Explorer ==
start "" "%programfiles%\Internet Explorer\iexplore.exe" "%answer%"
REM == MultipleIE (only if you have this installed) ==
start "" "%programfiles%\MultipleIEs\IE6\iexplore.exe" "%answer%"
REM == Chrome ==
start "" "%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" "%answer%"