C#后台执行bat

ProcessStartInfo p = new ProcessStartInfo();

p.FileName = "C:\\1.bat";

p.WindowStyle = ProcessWindowStyle.Hidden;

p.ErrorDialog = false;

p.CreateNoWindow = true;

Process.Start(p);

05-08 15:03