Archive

Posts Tagged ‘process’

Start process without console window

April 22, 2014 Leave a comment

To start a process and get out it’s output stream, you can use ProcessStartInfo like:

var startInfo = new ProcessStartInfo("net.exe", "use \\192.168.100.10")
                {
                    UseShellExecute = false,
                    CreateNoWindow = true
                };
var process = Process.Start(startInfo);
process.WaitForExit();
Advertisements
Categories: C# Tags: ,
%d bloggers like this: