We help IT Professionals succeed at work.

open IE link using edge from chrome.

hi,

now I use chrome as the default browser for my Windows 10 latest edition, and some link set to default open in old IE.

but how Edge browser build from Chrome is released, how can I change the app set to use IE only to use latest edge ?

is it possible ? so default browser still chrome until I found out Edge from chrome is better, only the apps I set to use IE before has to be in EDGE from chrome.
Comment
Watch Question

AlexA lack of information provides a lack of a decent solution.

Commented:

Have a look at Browsium, it'll redirect URL's to specific browsers across your estate.


Regards

Alex

Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

the apps I set to use IE before


Can you explain how you did this?

marrowyungSenior Technical architecture (Data)

Author

Commented:
Bill Prew,

sorry, I should the some URL shortcut I set to use IE but not chrome before.
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

So then, just update that shortcut to now use Edge.


Of course if you switch to Edge as your default browser then you might not even need the override shortcut.

marrowyungSenior Technical architecture (Data)

Author

Commented:
"So then, just update that shortcut to now use Edge."

how? I just don't know
marrowyungSenior Technical architecture (Data)

Author

Commented:
I want my default browser still chrome
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

how? I just don't know

Well, typically if I wanted to create a shortcut that forced a web page to open with IE, I would create the shortcut and specify a target something like this:


"C:\Program Files (x86)\Internet Explorer\iexplore.exe" www.microsoft.com


To now have that launch using Edge, just adjust it to this:


"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" www.microsoft.com


naturally that's on my system (Windows 10) so make sure that is the location of your EXE's (that should be typical), and try that change.


Honestly though, I'm just curious, what's your motivation for sticking with Chrome going forward?  With the new Edge it is using the same engine behind the scenes now, so sites should render the same.  Even extensions from the Chrome store can now be added right in to Edge, so that is big for me, since there are a few Chrome extensions that I have always liked.


Not criticizing your choice to stick with Chrome, but as another person faced with this new decision of Chrome versus Edge I'm just interested in your thoughts.  There are some things I don't like about the new Edge (like being locked in to Bing search on the "new tab" search box), but there were some privacy concerns I had with Chrome/Google too, so nothing is perfect.

marrowyungSenior Technical architecture (Data)

Author

Commented:
"C:\Program Files (x86)\Internet Explorer\iexplore.exe" www.microsoft.com



To now have that launch using Edge, just adjust it to this:


"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" www.microsoft.com"

I am sorry, should it be better if I tell windows 10 to use EDGE by using "open using"command ? it seems now windows 10 the open using command is lost, before seems i (alt -tab, but I forgot) the URL shortcut and then select open using, then select using edge ?


"Honestly though, I'm just curious, what's your motivation for sticking with Chrome going forward?"'

who know if edge from chrome stable or not ! has to keep watching its performance, right ?

"With the new Edge it is using the same engine behind the scenes now, so sites should render the same."

yes, then the question should be why still using EDGE, use chrome instead.

"There are some things I don't like about the new Edge"

part of the reason !

"but there were some privacy concerns I had with Chrome/Google too, so nothing is perfect."

then how can you know it gives you problem ?
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:
I am sorry, should it be better if I tell windows 10 to use EDGE by using "open using"command ? it seems now windows 10 the open using command is lost, before seems i (alt -tab, but I forgot) the URL shortcut and then select open using, then select using edge ?

Sorry, I am having trouble understanding exactly how you are doing it there.  Do you have a shortcut created for these web sites you previously opened with IE, or not?  What was the exact process you used previously to open them in IE?

If needed please include some screen shots so that we can better understand your details.


»bp
marrowyungSenior Technical architecture (Data)

Author

Commented:
" Do you have a shortcut created for these web sites you previously opened with IE, or not?  What was the exact process you used previously to open them in IE?"

I drag and drop the URL to the desktop and whenever I want that site, I will just double click that desktop icon to open it , now it open IE for me but I want it to use Edge to open that site for me.
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

Then you should be able to change the shortcut as I mentioned above, to launch the page with   "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe".


[hr]

»[b][i]bp[/i][/b]

marrowyungSenior Technical architecture (Data)

Author

Commented:
"

»bp

sorry this is not understandable

" to launch the page with   "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe".
I am confused, how can I launch the URL but this using mouse ? that is a link, shortcut of the URL on my desktop .

it seems must be in command mode.
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

Okay, let's try a different approach.  Locate the older IE program icon in your start menu or task bar and launch IE.  Then browse to the site that you want to save a shortcut to.  Once the page is visible in IE, drag the small icon to the left of the page URL address in IE to the desktop.


This should create a new desktop shortcut that is "tied" to IE and launches the page with it, at least it did when I tested it here.


If this doesn't work then we can try a different approach.

marrowyungSenior Technical architecture (Data)

Author

Commented:
"Okay, let's try a different approach.  Locate the older IE program icon in your start menu or task bar and launch IE.  Then browse to the site that you want to save a shortcut to.  Once the page is visible in IE, drag the small icon to the left of the page URL address in IE to the desktop.



This should create a new desktop shortcut that is "tied" to IE and launches the page with it, at least it did when I tested it here."

I am exactly doing this for a long long time and I use old IE for those. but now I want to change all shortcut to run using edge, any easier idea than one the URL in EDGE and drag and drop to desktop again ?

I tried that too but when opening it again it will be launch by chrome but not EDGE, so it see EDGE as chrome ..
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

How many of these shortcuts do you have that need "converting" from IE to Edge?

If you right click on one of these, and select Properties, what type of file is it?  Is it a *.url file, or a *.lnk file?

________________________________________________________________________

»bp

marrowyungSenior Technical architecture (Data)

Author

Commented:
":How many of these shortcuts do you have that need "converting" from IE to Edge?"

20s

"If you right click on one of these, and select Properties, what type of file is it?  Is it a *.url file, or a *.lnk file?


is a pinned site shortcut.

but it say it is a .website object.
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

Okay, those would be *.url files then.


It could be done, to script something that would convert them all.  The challenge is they would need to be changed to *.lnk files and specify Edge to run the URL.  But the *.url files are just a simple text file format, easy to work with.  Where as the *.lnk files are a binary format, so that requires more work to create those in a script.


All that said, if before you had Chrome set as your default browser though, I don't see how the *.url, ".website object" shortcut was opening the URL in IE though.  Unless there is some magic that I am not aware of.


Could you attach one of those files to a comment here so I could see it?

marrowyungSenior Technical architecture (Data)

Author

Commented:
hi,

let's see this one .
YouTube-to-MP4---MP3-Converter-a.website
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:

So what I gather from a little research is that *.website files were something Microsoft created, and are tied directly to IE.  That's why those are always launching in IE, even if it's not the default browser.


I don't see any trick or easy way to make those now start using Edge instead.


And it looks like the other alternative is *.url files, but they always get handled by the default browser, so that doesn't help.


I think your best bet will be to replace those *.website shortcuts with *.lnk ones, where you can specify the path to Edge and force it to open the URL there.


I'll play around a bit tomorrow and see if there's any "easy" way I can get that process scripted for you, reading the existing *.website files and creating new *.lnk ones.

marrowyungSenior Technical architecture (Data)

Author

Commented:
tks.
Test your restores, not your backups...
Expert of the Year 2019
Top Expert 2016
Commented:
Okay, spent a bit of time on this and have something that works here.  Save the below code as a VBS file, in my case it was named "EE29170527.vbs".  Then adjust the paths near the top as needed.

  • FolderToProcess : This should be the path to the folder where your current shortcuts are located that you want to process.  In my test I placed them in a work folder, but you could use the path to your Desktop folder if you want as well.
  • EdgeProgramPath : This should be the full path to your msedge.exe file (which I suspect should be the same as mine was, but double check).

Then open a Command Prompt window in the same folder where you placed the VBS script and execute it as follows:

cscript EE29170527.vbs

where EE29170527.vbs is whatever file name you saved the script as.

The script will process all *.website files in the specified folder, and try to extract the info from them and then add new matching *.lnk shortcut files that will open the same URL but with the Edge browser.

I couldn't see any way to associated the site icon with the new *.lnk shortcuts, they only support local icons on the Windows computer, whereas the *.website files allow a reference to the website location of the icon.  So they will all have the Edge browser icon by default.  If you wanted to pull down the site icons (see the *.website files for locations) you could, save them to a folder on the computer, and then reference that in the new *.lnk Preference setting the icon there.  But that's left to you if you want, and if the basic script works as you need.

A small amout of info will be logged to the console as the script runs, showing the *.website files it processes, and the *.lnk files it creates.  If it can't find the URL info in the *.website file it displays that fact too, and won't create a *.lnk file, naturally.  Here's a sample of the display when I did a small test here:

Thu 01/30/2020 14:02:29.27 B:\EE\EE29170527>cscript EE29170527.vbs
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Process "B:\EE\EE29170527\Desktop\Experts-Exchange - Wikipedia.website"
Created "B:\EE\EE29170527\Desktop\Experts-Exchange - Wikipedia.lnk"
Process "B:\EE\EE29170527\Desktop\YouTube to MP4 & MP3 Converter and Video Download - ClipConverter.cc.website"
Created "B:\EE\EE29170527\Desktop\YouTube to MP4 & MP3 Converter and Video Download - ClipConverter.cc.lnk"
Process "B:\EE\EE29170527\Desktop\Mathway  About Us.website"
Created "B:\EE\EE29170527\Desktop\Mathway  About Us.lnk"
Done

Open in new window


Option Explicit

' !!!!! Define path to folder to process, and path to Edge Browser !!!!!
Const FolderToProcess = "B:\EE\EE29170527\Desktop"
Const EdgeProgramPath = "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"

' Text file I/O constants
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Const TristateTrue = -1
Const TristateFalse = 0
Const TristateUseDefault = -2

' Global variables
Dim objFSO
Dim objShell
Dim strProcessFolder
Dim objFile
Dim strURL
Dim strDescription
Dim i
Dim arrLine
Dim strLnkPath

' Create needed global objects
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")

' Make sure folder to process exists
strProcessFolder = objFSO.GetAbsolutePathname(FolderToProcess)
If Not objFSO.FolderExists(strProcessFolder) Then
    Wscript.Echo "*ERROR* Folder to process """ & strProcessFolder & """ does not exist."
    Wscript.Quit
End If

' Process all matching files in input folder
For Each objFile In objFSO.GetFolder(strProcessFolder).Files

    ' Only process "*.website" files
    If LCase(objFSO.GetExtensionName(objFile.Path)) = "website" Then

        ' Desplay file being process to console
        Wscript.Echo "Process """ & objFile.Path & """"

        ' Read entire file into an array of the lines
        With objFSO.OpenTextFile(objFile, ForReading, False, TriStateUseDefault)
            arrLine = Split(.ReadAll, vbCrLf)
            .Close
        End With

        ' Extract desired info from the .website file lines
        strURL = ""
        strDescription = ""
        For i = 0 to UBound(arrLine)
            If UCase(Left(arrLine(i), 4)) = "URL=" Then
                strURL = Replace(Mid(arrLine(i), 5), """", "")
            End If
            If UCase(Left(arrLine(i), 6)) = "PROP4=" Then
                strDescription = Replace(Mid(arrLine(i), 10), """", "")
            End If
        Next

        ' If we found the URL, create new "*.lnk" shortcut from this information
        If strURL <> "" Then
            ' Build path for new .lnk file
            strLnkPath = objFSO.GetParentFolderName(objFile.Path) & "\" & objFSO.GetBaseName(objFile.Path) & ".lnk"

            ' Create .lnk shortcut file for this URL
            With objShell.CreateShortcut(strLnkPath)
                .TargetPath = EdgeProgramPath
                .Arguments = strURL
                .Description = strDescription
                ' .HotKey = "ALT+CTRL+F"
                ' .IconLocation = ""
                .WindowStyle = "1"   
                ' .WorkingDirectory = ""
                .Save
            End With

            ' Log to console
            Wscript.Echo "Created """ & strLnkPath & """"
        Else
            ' Report the fact that we couldn't find the URL info in the existing file
            Wscript.Echo "No URL found, file skipped."
        End If

    End If

Next

'Done
Wscript.Echo "Done"
Wscript.Quit()

Open in new window


»bp
marrowyungSenior Technical architecture (Data)

Author

Commented:
"The script will process all *.website files in the specified folder, and try to extract the info from them and then add new matching *.lnk shortcut files that will open the same URL but with the Edge browser.
"

one thing, did you try the converted URL and see it is launched by chrome or edge ? it seems shortcut created by Edge will be open by chrome too ?
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:
it seems shortcut created by Edge will be open by chrome too ?

Please be more specific here.  What is the extension of this file you mention "created by Edge?  How was it created?  Can you upload one here....


»bp
marrowyungSenior Technical architecture (Data)

Author

Commented:
"What is the extension of this file you mention "created by Edge?  "

Internet Shortcut (.url)

" How was it created?"

I browse that URL when I was in IE using Edge by chrome, then drag and drop that link back to desktop. open that URL again, it is in chrome not in edge

i can't attach it as EE said it is not an acceptable format.
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:
Okay, that makes sense.  *.URL files are a third way that web shortcuts can be created on Windows, and are browser independent. They don't specify the browser to use, but always use the currently defined default browser application.

If you want all *.url shortcuts to also always open in Edge then you would need to create similar *.lnk files.  Or if you had a lot of these we could adapt the script I posted to also process *.url as well as the *.website links it is doing now.


»bp
marrowyungSenior Technical architecture (Data)

Author

Commented:
", but always use the currently defined default browser application."

so if .url are open by both browser, no make to make edge open it instead of chrome, right?


"then you would need to create similar *.lnk files"

what is that mean ?
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:
so if .url are open by both browser, no make to make edge open it instead of chrome, right?
No need, no, it will open with your default browser, which I understand will continue to be Chrome.  As long as you want those shortcuts to open in Chrome then no need to do anything to the *.url shortcuts.
what is that mean ?
It means if you wanted the *.url shortcuts to always open using Edge rather then your default browser (which I understand to be Chrome) then you would have to use a different shortcut file (*.lnk rather than *.url) which could reference Edge.


»bp
marrowyungSenior Technical architecture (Data)

Author

Commented:
"then you would have to use a different shortcut file (*.lnk rather than *.url) which could reference Edge."

so have to use your script to convert to other extension and this is it ?
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Commented:
so have to use your script to convert to other extension and this is it ?
My script converts *.website to *.lnk format.  If you wanted it to also convert *.url to *.lnk then it would need to be modified.  If you want that send me a sample of your *.url files.


»bp
marrowyungSenior Technical architecture (Data)

Author

Commented:
I think we all have to ignore it for now! not very important but spend some times.
marrowyungSenior Technical architecture (Data)

Author

Commented:
tks all.