System.Diagnostics.Process.Start("notepad.exe");

解决方案 »

  1.   

    System.Diagnostics.Process.Start("abc.exe");
      

  2.   

    // 计算器
    String strCalc=String.Format("{0}{1}{2}",System.Environment.GetFolderPath(System.Environment.SpecialFolder.System),System.IO.Path.DirectorySeparatorChar.ToString(),"Calc.exe");
    if(File.Exists(strCalc))
    {
    System.Diagnostics.Process.Start("Calc.exe");
    }
      

  3.   

    using System.Diagnostics;
    -------------------------------Process proc = new Process(); proc.StartInfo.FileName = @"ping.exe"; proc.StartInfo.Arguments = "www.sina.com.cn"; 
    proc.StartInfo.UseShellExecute = false;
    proc.StartInfo.RedirectStandardOutput = true;
    proc.Start(); string output = proc.StandardOutput.ReadToEnd();MessageBox.Show(output);MessageBox.Show((proc.ExitCode).ToString());ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfsystemdiagnosticsprocessclassstandardoutputtopic.htm