4.16. Start a New Process

Problem

You need to execute an application in a new process.

Solution

Call one of the Shared Start method overloads of the System.Diagnostics.Process class. Specify the configuration details of the process you want to start as individual arguments to the Start method or in a System.Diagnostics.ProcessStartInfo object that you pass to the Start method.

How It Works

The Process class provides a managed representation of an operating system process and offers a simple mechanism through which you can execute both managed and unmanaged applications. The Process class implements five Shared overloads of the Start method, which you use to start a new process. All these methods return a Process object that represents the newly ...

Get Visual Basic 2008 Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.