Does any one know how to open a specific browser for specific links?
I have two links that I want to open in IE and others in Chrome. Is this even possible?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
A Solution would be a seperate "browser handler" program. It would be set in Windows as the default browser, but wouldn't open any link itself at all and instead present you with a list of browsers and relay the URL to the one you select. Basically same as on android, if you hadn't ticked the "Always use …" option for a specific file type.
Answer / Explanation / Technical:
No, there is no practical way to do that. Windows has a list of “handlers” which tell it what to do (eg what program to run) when different types of files and system objects are activated (eg opened). The list is limited to types which for the most part just includes extensions (eg .EXE,
.URL, etc.) There is no way to specify handlers for specific filenames since the list would eventually grow ridiculously large and provide extremely poor performance. Worse, there is definitely no way to specify handlers based on the contents of a file since that would require Windows to (1) open the file, and (2) know how to read and interpret the contents.
Bookmarks (ie, “browser links”) are plain-text files with a
.URL extension which contain the URL. For example:
For what you want, Windows would need to know how to open the file, read and parse it, analyze the URL and make a decision based on that. There is just no way for that to happen.
Theoretically there could be a way to practically implement file-name/contents-specific handlers. Preview handlers allow Windows to read a file and provide information about it (eg video length and thumbnail, audio bitrate, # words in a DOC file, etc.), so the framework is there, but currently, there is just no way to perform content-specific actions.
If there really are only two links (ie you do not create new bookmarks often), then the closest you can come to doing a URL-specific handler would be to create your own file-type (eg
.URLc) by copying the default URL file-type and changing the program (browser) that is used to open it.
Better Solution 1:
If your issue is that certain sites require IE (eg Windows Update), then a much easier option would be to install an extension like IE Tab. The better ones even let you configure it to automatically use an IE-based tab for specified URLs.
Better Solution 2:
Another option as suggested by Psycogeek is to create a normal desktop shortcut to pass the URL to IE instead of using an actual Internet shortcut (aka bookmark):
.URLfile, but that is not what you want, instead prefix the URL with
iexplore. For example:
Now instead of a bookmark file, it creates a Windows shortcut (a binary
.LNK file). When you want to run that specific site, it will run the specified program with the specified arguments (in this case IE with the target URL). It can be launched in the same way as a bookmark.
Like the possible solution presented above, it makes the assumption that there are few items that require special treatment since it means a little more work to create and maintain them. Note that because these are Windows shortcuts instead of bookmarks, they will not be treated as expected in certain scenarios that work with bookmarks such as backups, duplicate detection, bookmark managers, etc. However, if there are just a small handful of special-case URLs, then it should not be too much of a problem to work-around it.
I created a shortcut on my desktop:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" http://example.com
Add a space between
When you click on it, you will go to
example.com using Chrome.
I resized the IE window and dragged and dropped the shorcut to the links bar in IE.
For my windows computer, if the link needs to open in Chrome, I just add the prefix "chromerun://" before the "http://" in the webaddress when I'm saving the shortcut or creating the hyperlink for others to use. This will cause the page to open in chrome automatically, regardless of the default browser setting. I've included an example below.
Using a shortcut or clicking on a hyperlink with this path in a word document or email will open google using Chrome every time. I am not an IT person and don't know exactly why this works or if there is an iE equivalent of this trick, but I've been doing this for years and it works well for me.