我怎么获得系统IE的路径
由于程序要调用ie打开一个链接,但是每台机器ie路径可能不同
有什么办法获得

解决方案 »

  1.   

    HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\open\command读注册表试试
      

  2.   


    我的读取后为"C:\Program Files\Internet Explorer\iexplore.exe" %1
    怎么去掉最后的那个符号?
      

  3.   


    我的读取后为"C:\Program Files\Internet Explorer\iexplore.exe" %1
    怎么去掉最后的那个符号?
      

  4.   

    string ss = "\"C:\\Program Files\\Internet Explorer\\iexplore.exe\" %1";
    Regex rg = new Regex("\".+\"");
    MatchCollection mts = rg.Matches(ss);
    if (mts.Count > 0) {
    string path = mts.Item(0).Value; if (System.IO.File.Exists(path)) {
    }
    }
      

  5.   


    这句string path = mts.Item(0).Value;语法错误
      

  6.   

    错误 1 “System.Text.RegularExpressions.MatchCollection”不包含“Item”的定义,并且找不到可接受类型为“System.Text.RegularExpressions.MatchCollection”的第一个参数的扩展方法“Item”(是否缺少 using 指令或程序集引用?)