Created
January 8, 2016 09:42
-
-
Save LGM-AdrianHum/a27360970151bae2a28b to your computer and use it in GitHub Desktop.
Start Process Inside The Same Console Application Window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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