Loading

C#调用迅雷下载,调用迅雷影音播放

方法很多种,这里介绍一种,通过命令行参数调用。

try
            {
                string thunderPath = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Classes\\thunder\\DefaultIcon").GetValue("").ToString().Split(',')[0];
                Process.Start(thunderPath, "http://www.baidu.com/abc.exe");
            }
            catch (Exception ex)
            {
                
                throw new Exception("未安装迅雷");
            }

这是调用迅雷的,由于我本机没有安装迅雷影音,所以就不贴代码了 ,和上面的差不多

posted @ 2016-01-11 15:42  晓晨Master  阅读(1206)  评论(0编辑  收藏  举报