Error handling using process c#
问题 I have created a console application using C#, and I called it from another Windows Forms application using Process . Below is my code for Console Application static void Main(string[] args) { try { // ...my code } catch (Exception) { throw; } } Below is code for call the exe of Console application from the window application using process public void CallExe() { try { Process proc = new Process(); proc.StartInfo.FileName = @"D:\Debug\console1.exe"; proc.StartInfo.Arguments = "My args"; proc