.:: CODE SNIPPET ::.

"Your time is limited, so don't waste it living someone else's life"

Tag Archives: process

Start process without console window


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
%d bloggers like this: