Force chrome with URL link, default browser IE

tucktech
tucktech used Ask the Experts™
on
Hello Experts, I want to keep my default browser as IE/Edge but for a specific URL that I could send in an email I want o force the use of chrome.  Is there a simple solution?

Scenario - I am in a corporate environment and our default browser is IE, that won’t change.  I have a solution I am rolling out that requires the use of Chrome.  Users will have a difficult time copying a URL and making a shortcut etc. I want to be able to send an email with a link and have it us Chrome with an internal url.

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
1) Set IE as default browser.

2) Run IE.

3) Run Chrome.

4) Access your email via Chrome. Likely this will work fairly well.

Author

Commented:
We have our own exchange servers and use outlook.
David S.Consultant & Challenge Subduer
Top Expert 2009

Commented:
What I might do is set a batch script as the default handler for HTTP and HTTPS URLs and in that batch script choose which app to run based on if the URL was to a specific domain or not.
@ECHO OFF

REM START USER VARIABLES 

SET "key=example.com"
SET "chromePath=%LOCALAPPDATA%\Google\Chrome\Application\chrome.exe"

REM END USER VARIABLES

SETLOCAL ENABLEEXTENSIONS

SET "URL=%~1"

REM using "IF [NOT] DEFINED" with variable names containing parenthesis is a 
REM little buggy, so we can't use an if/else here 
IF DEFINED PROGRAMFILES(x86) SET "progFilesPath=%PROGRAMFILES(X86)%"
IF NOT DEFINED PROGRAMFILES(x86) SET "progFilesPath=%PROGRAMFILES%"

CALL SET keyRemoved=%%URL:%key%=%%

IF ["%keyRemoved%"]==["%URL%"] (

	start "" "%progFilesPath%\Internet Explorer\iexplore.exe" "%URL%"

) ELSE (

	start "" %chromePath% "%URL%"

)

Open in new window

Commented:
created chrome shortcut from within chrome. this launches chrome with a specified url

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial