aight didn't think you needed the whole thing but here it is..
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
if (!CreateProcess( "app.exe",
" +connect " && textBox1->Text,
NULL,
NULL,
FALSE,
0,
NULL,
"C:\"...