STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(&si, sizeof(si)); si.cb = sizeof(si); // Start the process if(!CreateProcess("c:\\windows\\notepad.exe", NULL/*Command line params go here*/, NULL, NULL, FALSE, 0, NULL, NULL/*Working full dir path for new process goes here*/, &si, &pi)) { // Error } // Wait until process exits // Remove this line if you don't want to wait 'till the process is finished WaitForSingleObject(pi.hProcess, INFINITE); // Close process and thread handles CloseHandle(pi.hProcess); CloseHandle(pi.hThread); MessageBox(NULL, "outta here", "test", MB_OK); // continue...