How i can hide or minimize window of process window after starting?
P.S RedirectStandardOutput me need.I tryed use WinAPI - ShowWindow(handle, SW_HIDE);
But it's did't works too
Process process = new Process();
process.StartInfo.FileName = processName;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
process.Start();
process.OutputDataReceived += OnDataReciever;
process.BeginOutputReadLine();