void __fastcall TForm1::Button1Click(TObject *Sender) { String CmdLine = "cmd /c" + Edit1->Text; WinExec(CmdLine.c_str(), SW_HIDE); }