I have an application that i want to run a batch file from it all i get is the flashing CMD windows but is not running.
at one time I get it to run but dont know what happen start modyfying other things and stop working.
what i really want is run the batch file but hidden no user interaction whatsoever and it would be great to have a feedback when the batch finish \
this is one of the million codes I try
System.Diagnostics.ProcessStartInfo p = new System.Diagnostics.ProcessStartInfo(@"setstation.cmd"); p.UseShellExecute = false; p.RedirectStandardOutput = false; p.RedirectStandardError = true; System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo = p; proc.Start(); proc.WaitForExit();
my batch file read from a text file and create two files it has a pause on it, it runs great if i run the batch file directly.