Automation.UI.Application.Launch C# (CSharp) 메소드

Launch() 공개 정적인 메소드

Launches the application with the specified executable.
public static Launch ( string executable ) : Application
executable string The executable to launch.
리턴 Application
        public static Application Launch(string executable)
        {
            var info = new ProcessStartInfo(executable);
            var process = Process.Start(info);
            var pid = process.Id;

            return new Application(pid);
        }