Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open link in c#

Tags:

c#

.net

If I try to use:

System.Diagnostics.Process.Start("http://google.com");

the following error occurs:

System.ComponentModel.Win32Exception: "The system cannot find the file specified"

I use win10 and visual studio.

Actually I can't find a solution or something like that. Maybe it's because i'm behind a proxy ? Or could there be any other problem ? And if yes, could you help me to fix it ?

like image 837
Morta Avatar asked Dec 11 '22 07:12

Morta


1 Answers

Can you try below work around:

System.Diagnostics.Process.Start("cmd","/c start http://www.google.com");
like image 141
SpiderCode Avatar answered Dec 28 '22 15:12

SpiderCode