For some reason I can’t get this batch file to run in my .NET 4.0 MVC3 project. I am using server 2008R2 64 bit – does cmd.exe operate differently?
System.Diagnostics.Process process1;
process1 = new System.Diagnostics.Process();
process1.EnableRaisingEvents = false;
string strCmdLine = "d:\audioTemp\test.bat";
System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
process1.Close();
1 Answer