Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

launching a ural in multiple web browsers simultaneously

Hi experts,

I'm trying to create a batch file that when I double click on it, it opens a url in mulitple web browsers at the same time.

So my batch file is called mytest.bat

This is my code.

set /p url= [https://www.bing.com]

if exist "C:\Program Files\Internet Explorer\iexplore.exe" start "" "C:\Program Files\Internet Explorer\iexplore.exe" %url%&
if exist "C:\Program Files%(x86)\Mozilla%Firefox\firefox.exe" start "" "C:\Program Files%(x86)\Mozilla%Firefox\firefox.exe" %url%&
if exist "%ProgramFiles(x86)%\Opera\opera.exe" start "" "%ProgramFiles(x86)%\Opera\opera.exe" %url%&
if exist "%ProgramFiles(x86)%\Safari\Safari.exe" start "" "%ProgramFiles(x86)%\Safari\Safari.exe" %url%&
if exist "%USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe" start "" "%USERPROFILE%\AppData\Local\Google\Chrome\Application\chrome.exe" %url%&

Open in new window


But something is not correct.

What I'm a doing wrong? or is there a better way to do the same thing?
ASKER CERTIFIED SOLUTION
Avatar of ChloesDad
ChloesDad
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial