1.调用widnows资源管理器打开文件夹

        private void OpenFolder(string folder)
        {
            System.Diagnostics.Process.Start("explorer.exe", folder);
        }

 

 2.调用IE浏览器打开指定的网址

        private void button1_Click(object sender, EventArgs e)
        {
            //方法1
            System.Diagnostics.Process.Start("iexplore.exe", "http://www.bing.com");


            //方法2
            System.Diagnostics.Process[] newProcess = new System.Diagnostics.Process[1];
            newProcess[0] = new System.Diagnostics.Process();
            newProcess[0].StartInfo.FileName = "iexplore.exe";
            newProcess[0].StartInfo.Arguments = "http://www.bing.com";
            newProcess[0].Start();
        }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
猜你喜欢
  • 2022-02-07
  • 2021-11-22
  • 2021-08-03
  • 2021-07-05
  • 2022-12-23
  • 2021-06-09
相关资源
相似解决方案