I want to execute a BAT file through the use of C# code.
I attempted to use the following code,
 Process aProcess = new Process();
 aProcess = Process.Start(@"E:\IMP_DATA\PRC_Helper_uTest.bat");
 aProcess.WaitForExit(24000);
 aProcess.Close();
It starts the batch file but very next second stops.
I am not able to see any thing.
Can anyone help me regarding this problem?
UPDATE
Actually I want to start a new command prompt and run a batch file on that newly created command prompt.
How could I achieve this?