ProcessStartInfo Constructor (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the ProcessStartInfo class and specifies a file name such as an application or document with which to start the process.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public ProcessStartInfo(
	string fileName


Type: System.String

An application or document with which to start a process.

The file name is any application or document. In this case, a document is defined to be any file type that has an open or default action associated with it. You can view registered file types and their associated applications for your computer by using the Folder Options dialog box, which is available through the operating system. The Advanced button leads to a dialog box that shows whether there is an open action associated with a specific registered file type.

You can change the FileName property after you call this constructor, up to the time that the process starts. After you start the process, changing these values has no effect.


for full trust for the immediate caller. This member cannot be used by partially trusted code.

.NET Framework
Available since 1.1
Return to top