실행
-
Process 실행시키기dev/C# 2009. 11. 25. 15:02
외부 실행파일("*.exe")을 실행기키기 Application 만들다가 외부 프로그램을 실행시킨 뒤, 실행이 끝나면 어떤 처리를 해야 할 경우 1. 동기 : WaitForExit() 이용 Process proc = Process.Start("notepad.exe"); proc.WaitForExit(); 정보를 대략 출력해보면, Process proc = Process.Start("notepad.exe"); proc.WaitForExit(); Console.WriteLine("Process FileName: " + proc.StartInfo.FileName); // 프로세스 이름 Console.WriteLine("Start time: " + proc.StartTime.ToString()); // 시작 시..