WPF/C#日记:调用explorer打开网站网址链接

老办法,调用 explorer +参数打开指定网址。

直接扣代码,

方法一(最有效,默认浏览器):

System.Diagnostics.Process.Start("explorer.exe", "https://www.baidu.com");

方法二(调用CMD,默认浏览器):

System.Diagnostics.Process.Start("cmd.exe", "https://www.baidu.com");

 

方法三(可能失效):

直接取用:

 

System.Diagnostics.Process.Start("https://www.baidu.com");

 

直接调用IE:

 

System.Diagnostics.Process.Start("iexplore.exe", "https://www.baidu.com");

 

 方法跟我之前写的autoit的调用方法异曲同工,估计很多dalao们都知道的吧/滑稽

posted on 2017-11-29 12:17  Cela  阅读(374)  评论(0编辑  收藏  举报

导航

Copyright ©Cela
Design by Cela