下面我以打开IE为例
引入命名空间
using
System.Diagnostics;
具体方法
Process ieProcess
=
new
Process();
ieProcess.StartInfo.FileName = " iexplore.exe " ; // 可以更换为其他应用程序的执行文件
ieProcess.StartInfo.Arguments = " ...URL... " ;
ieProcess.Start();
ieProcess.StartInfo.FileName = " iexplore.exe " ; // 可以更换为其他应用程序的执行文件
ieProcess.StartInfo.Arguments = " ...URL... " ;
ieProcess.Start();