Process p = new Process(); p.StartInfo.FileName = yourfilepath try { p.Start(); } catch (Win32Exception err) { MessageBox.Show(err.Message); }
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo(); Info.FileName = "***.exe"; System.Diagnostics.Process.Start(Info);
winfrom 可以用Process.Start
p.StartInfo.FileName = yourfilepath
try
{ p.Start(); }
catch (Win32Exception err)
{
MessageBox.Show(err.Message);
}
Info.FileName = "***.exe";
System.Diagnostics.Process.Start(Info);