缺少命名空间using System;
using System.Diagnostics;
namespace ConsoleApplication1
{
public class runpro
{
static void Main()
{

Process p = new Process();
p.StartInfo.RedirectStandardOutput=false;
p.StartInfo.FileName="e:\\report\\report.txt"; p.StartInfo.UseShellExecute=true;
p.Start();
p.WaitForExit();
p.Dispose(); 

}
}
}