Automation.UI.Application.Launch C# (CSharp) Method

Launch() public static method

Launches the application with the specified executable.
public static Launch ( string executable ) : Application
executable string The executable to launch.
return 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);
        }