Launch a process in Hidden Window

By [)ia6l0 iii

Use the WindowStyle and CreateNoWindow properties of the ProcessStartInfo class to launch a program with hidden window.

Sample snippet below:

ProcessStartInfo processStartInfo =
new System.Diagnostics.ProcessStartInfo(@"pass the file name here.");
processStartInfo.
WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
processStartInfo.UseShellExecute =
false;
processStartInfo.RedirectStandardOutput
= true;
processStartInfo.CreateNoWindow = true;

Launch a process in Hidden Window  (692 Views)