When the ProcessStartInfo.UseShellExecute property is false, gets or sets the working directory for the process to be started. When ProcessStartInfo.UseShellExecute is true, gets or sets the directory that contains the process to be started.
Documentation for this section has not yet been entered.
The ProcessStartInfo.WorkingDirectory property must be set if ProcessStartInfo.UserName and ProcessStartInfo.Password are provided. If the property is not set, the default working directory is %SYSTEMROOT%\system32.
If the directory is already part of the system path variable, you do not have to repeat the directory's location in this property.
The ProcessStartInfo.WorkingDirectory property behaves differently when ProcessStartInfo.UseShellExecute is true than when ProcessStartInfo.UseShellExecute is false. When ProcessStartInfo.UseShellExecute is true, the ProcessStartInfo.WorkingDirectory property specifies the location of the executable. If ProcessStartInfo.WorkingDirectory is an empty string, the current directory is understood to contain the executable.
When ProcessStartInfo.UseShellExecute is true, the working directory of the application that starts the executable is also the working directory of the executable.
When ProcessStartInfo.UseShellExecute is false, the ProcessStartInfo.WorkingDirectory property is not used to find the executable. Instead, its value applies to the process that is started and only has meaning within the context of the new process.