■ Process 클래스의 Start 메소드를 사용해 엣지 브라우저를 실행하는 방법을 보여준다.
▶ 예제 코드 (C#)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
using System.Diagnostics; string url = "https://icodebroker.tistory.com"; string command = $"start microsoft-edge:{url}"; Process process = new Process(); process.EnableRaisingEvents = true; process.StartInfo.FileName = "cmd.exe"; process.StartInfo.Arguments = string.Format("/C {0}", command); process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized; process.StartInfo.CreateNoWindow = true; process.StartInfo.UseShellExecute = false; process.StartInfo.RedirectStandardOutput = true; process.Start(); |