Intro C# 코드를 사용하여 batch file을 실행했을 때, 해당 process의 StandardOutput/StandardInput을 사용하여 stream을 읽어야 하는 경우가 있다. 이때, 에러가 발생한 경우에는 stream을 통해서 읽을 수가 없었다.
이 글에서는 error를 handling 할 수 있는 방법을 소개한다. Goals · Batch file process에서의 error handling Content 위 Summary는 msdn에서 발췌했다.
간략하게 설명하자면 batch file process에서 정상 실행인 경우 StandardOutput을 사용하고, error가 발생한 경우 StandardError를 사용한다는 내용이다. 그렇기 때문에 StandardInput이 아닌 StandardError를 사용해서 error를 받아내는 방법도 있으나, 그렇게 하면 Stan..........
원문 링크 : [C#] Batch file 실행 시 에러 발생 여부 확인