I hope that you can help me. When I want to execute those .bat files, I can see that the files are executed but I can get only the first one, the second one or the others I can’t get them, I have no problem with my batch files, I’ve tried to executed them one by one and it works.
string str_Path = Server.MapPath(".") + "\\execute.bat";
string str_PathN= Server.MapPath(".") +"\\executeN.bat";
string str_PathHD = Server.MapPath(".") + "\\executeHD.bat";
string str_PathFHD = Server.MapPath(".") + "\\executeFHD.bat";
ProcessStartInfo processInfo = new ProcessStartInfo(str_Path);
processInfo.UseShellExecute = false;
Process batchProcess = new Process();
batchProcess.StartInfo = processInfo;
batchProcess.Start();
Thread.Sleep(3000);
ProcessStartInfo hd = new ProcessStartInfo(str_PathHD);
hd.UseShellExecute = false;
Process batchProcessHD = new Process();
batchProcessHD.StartInfo = processInfo;
batchProcessHD.Start();
Thread.Sleep(3000);
...
Why don’t you
Or a better version of runBatch: