Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to make an exe file that runs a link to outlook.com and assign it to a key that is extra in my special keyboard. How to run Edge-Beta and not Edge.

What I have tried:

System.Diagnostics.Process.Start(@"microsoft-edge:http://www.outlook.com", "http://www.outlook.com");


I imagine something like this:

System.Diagnostics.Process.Start(@"microsoft-edge-beta:http://www.outlook.com", "http://www.outlook.com");


This is how I open a link with Chrome:
static void Main()
        {
            System.Diagnostics.Process.Start(ChromeAppFileName, "http://www.outlook.com");
        }

        private const string ChromeAppKey = @"\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe";

        private static string ChromeAppFileName
        {
            get
            {
                return (string)(Registry.GetValue("HKEY_LOCAL_MACHINE" + ChromeAppKey, "", null) ??
                                    Registry.GetValue("HKEY_CURRENT_USER" + ChromeAppKey, "", null));
            }
        }
Posted
Updated 24-Oct-20 6:46am
v3
Comments
Richard MacCutchan 24-Oct-20 10:44am    
And? What happens when you run it?
john1990_1 24-Oct-20 10:46am    
This doesn't work: System.Diagnostics.Process.Start(@"microsoft-edge-beta:http://www.outlook.com", "http://www.outlook.com"); I want something else that works plz.
Richard MacCutchan 24-Oct-20 11:20am    
What does that mean?
john1990_1 24-Oct-20 11:23am    
I want plz a C# code that opens www.outlook.com in Edge Beta browser.
Richard MacCutchan 24-Oct-20 12:27pm    
What exactly is wrong with the code that you are using?

System.Diagnostics.Process.Start(@"C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe", "http://www.outlook.com");
 
Share this answer
 
Rather than imagine what might happen, take a look at Microsoft Edge Insider[^].
 
Share this answer
 
Comments
john1990_1 24-Oct-20 12:47pm    
Sorry, the answer is not there unless I read whole Microsoft websites or something, I updated how I open a link in Chrome in my question, please check it out and give me a path to a file where MS Edge Beta is in and I can put it in Process.Start() and it would launch Edge Beta with the given URL...
Richard MacCutchan 24-Oct-20 13:25pm    
How can I give you a path to Edge Beta? It is installed on your system, and I have no access to it.
john1990_1 24-Oct-20 13:32pm    
I thought the link is usually the same for everybody except for switching 32 bit and 64 bit maybe.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900