Documentation for this section has not yet been entered.
Setting this property to false enables you to redirect input, output, and error streams.
ProcessStartInfo.UseShellExecute must be false if the ProcessStartInfo.UserName property is not null or an empty string, or an InvalidOperationException will be thrown when the Process.Start(ProcessStartInfo) method is called.
When you use the operating system shell to start processes, you can start any document (which is any registered file type associated with an executable that has a default open action) and perform operations on the file, such as printing, by using the System.Diagnostics.Process object. When ProcessStartInfo.UseShellExecute is false, you can start only executables by using the System.Diagnostics.Process object.
ProcessStartInfo.UseShellExecute must be true if you set the ProcessStartInfo.ErrorDialog property to true.
The ProcessStartInfo.WorkingDirectory property behaves differently depending on the value of the ProcessStartInfo.UseShellExecute property. When ProcessStartInfo.UseShellExecute is true, the ProcessStartInfo.WorkingDirectory property specifies the location of the executable. If ProcessStartInfo.WorkingDirectory is an empty string, it is assumed that the current directory contains the executable.
When ProcessStartInfo.UseShellExecute is false, the ProcessStartInfo.WorkingDirectory property is not used to find the executable. Instead, it is used only by the process that is started and has meaning only within the context of the new process. When ProcessStartInfo.UseShellExecute is false, the ProcessStartInfo.FileName property must be a fully qualified path to the executable.