Hold the command prompt until user close it from close button.
Posted
by Kasun
on Stack Overflow
See other posts from Stack Overflow
or by Kasun
Published on 2010-06-15T13:07:40Z
Indexed on
2010/06/15
13:12 UTC
Read the original article
Hit count: 195
c#
Hi, I going to get the command prompt from my C# application to compile some C++ files. Code is like this.
private void button1_Click(object sender, EventArgs e)
{
string filePath = @"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe";
System.Diagnostics.Process.Start(filePath);
}
But After i click the button it suddenly comes and disappear. Even its opening two command prompts. I need to Hold it and only one command prompt should appear. Can some one provide me the necessary codes. Thank you.
© Stack Overflow or respective owner