Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- Process temp = new Process();
- try
- {
- temp.StartInfo.FileName = @"D:\projects\add\Debug\add.exe";
- temp.StartInfo.Arguments = "1 2";
- temp.StartInfo.ErrorDialog = true;
- temp.Start();
- temp.WaitForExit();
- int result = temp.ExitCode;
- Console.WriteLine("Ket qua la {0}", result);
- }
- catch (Exception)
- {
- Console.WriteLine("Could not start process");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment