Click to See Complete Forum and Search --> : using system command buttons


Yoma
February 22nd, 2009, 05:43 PM
I am making a program that adds a GUI to the Windows IPconfig in Command.
What I want to know is how to stop it from opening the and and closing the console window.

EDIT: I am aware that they already have this out.
but it does NOT work on Vista 64-bit.

Source:

private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e) {
Application::Exit();
}
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /renew");
}
private: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /renew6");
}
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release");
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /all");
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /allcompartments");
}
private: System::Void button6_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release6");
}
private: System::Void button7_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /flushdns");
}
private: System::Void button8_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /registerdns");
}
private: System::Void button9_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /displaydns");
}
private: System::Void button12_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /showclassid");
}
private: System::Void button11_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /setclassid");
}
private: System::Void button13_Click(System::Object^ sender, System::EventArgs^ e) {
system("ipconfig /release");
system("ipconfig /release6");
system("ipconfig /renew");
system("ipconfig /renew6");
}

Paul McKenzie
February 22nd, 2009, 05:58 PM
I am making a program that adds a GUI to the Windows IPconfig in Command.Wrong forum. The code you posted is managed C++, and this forum is not a managed C++ forum.

Regards,

Paul McKenzie

Yoma
February 22nd, 2009, 05:59 PM
ok could you ask someone to move it for me?

Yoma
February 23rd, 2009, 03:32 AM
So I should manually post it there?
or no help whatsoever?

cilu
February 23rd, 2009, 06:09 AM
[ redirected ]

So what is the problem actually?

Yoma
February 23rd, 2009, 02:15 PM
http://www.youtube.com/watch?v=3SJqYlKbh6k

I press the button that runs the IPconfig command and then the windows open and close.
I was wondering how to make a pause to the commands on the buttons.