用途:
c#應用程序中運行本地應用程序或打開文件
簡化代碼片段:
1、
using System.Diagnostics;
Process prs = new Process();
prs.StartInfo.FileName = @"E:\test.bat";
prs.Start();
2、
using System.Diagnostics;
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "iexplore.exe";
Process prs = Process.Start(psi);
prs.Start();
另:
詳細請參考MSDN。
最后更新于 [7/25/2010 4:39:55 PM]