Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 哪个浏览器进行处理。开始使用_C#_.net_Browser - Fatal编程技术网

C# 哪个浏览器进行处理。开始使用

C# 哪个浏览器进行处理。开始使用,c#,.net,browser,C#,.net,Browser,我的默认浏览器是谷歌浏览器 在c#中,我有process.start(“一些url,例如.*.html”) 但它仍然在IE中开放。 我想知道我们如何知道/控制将使用哪个浏览器进程.start 更新: 抱歉,我在这里漏掉了一点,在我的电脑上.html文件与Chrome关联如果html文件是Process.Start,则默认浏览器与默认的.html文件读取器不同 //opens your default browser Process.Start("www.google.com"); //open

我的默认浏览器是谷歌浏览器 在c#中,我有process.start(“一些url,例如.*.html”) 但它仍然在IE中开放。 我想知道我们如何知道/控制将使用哪个浏览器进程.start

更新:
抱歉,我在这里漏掉了一点,在我的电脑上.html文件与Chrome关联

如果html文件是Process.Start,则默认浏览器与默认的.html文件读取器不同

//opens your default browser
Process.Start("www.google.com"); 
//opens in IE if that's your configured default program for html files.
Process.Start(@"C:\myFile.html");

看起来可能对你的问题有一个很好的答案。如果在命令提示符下执行
ftype htmlfile
,它会给你什么?