Executing batch file with ProcessStartInfo
问题 I am using ProcessStartInfo class to execute a batch file. But I am not so aware of using it properly. When I execute a batch file can we track is there any error or not. In my scenario, batch will start another process and it is successfully started it will be keep on executing. And if there is any error executing batch file it will exit. This is the code I am using. I have to track both successfull start and failure as well. internal bool ExecuteBatchFile(string fileName, int executionTime)