Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launching Microsoft Edge with URL from code

I need to launch the Microsoft Edge browser with a specific URL from a c# application. How can I do that? What's the best way to retrieve the path where Microsoft Edge is installed and call it passing the appropriate arguments? I would like to launch it directly without installing any webdriver.

I saw this How to open URL in Microsoft Edge from the command line? but couldn't make it work from code.

Thanks.

like image 963
Andrea Nagar Avatar asked Oct 21 '25 06:10

Andrea Nagar


1 Answers

Process.Start("microsoft-edge:http://www.yourpage.co.uk");
like image 70
GeoffCoope Avatar answered Oct 23 '25 20:10

GeoffCoope



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!