Skip to content

Instantly share code, notes, and snippets.

@LGM-AdrianHum
Created January 8, 2016 09:42
Show Gist options
  • Save LGM-AdrianHum/a27360970151bae2a28b to your computer and use it in GitHub Desktop.
Save LGM-AdrianHum/a27360970151bae2a28b to your computer and use it in GitHub Desktop.
Start Process Inside The Same Console Application Window
private static void Main()
{
Console.WriteLine( "Hello" );
var p = new Process();
p.StartInfo = new ProcessStartInfo( @"c:\windows\system32\netstat.exe", "-n" )
{
UseShellExecute = false
};
p.Start();
p.WaitForExit();
Console.WriteLine( "World" );
Console.ReadLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment