看板 C_and_CPP 關於我們 聯絡資訊
請問要如何呼叫多個外部程式 讓他們同時執行? 我程式內寫成 system("A.exe"); system("B.exe"); 結果卻是一定要等到A.exe執行完 B.exe才會接下去執行 請問要如何讓B.exe也能馬上執行 而不用等A.exe執行完才執行? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.129.25.18
leslieha:fork?pthread? 03/13 18:41
saxontai:如果 platform 是在 Windows,可考慮 CreateProcess 或 03/13 18:42
saxontai:WinExec 這些 API 03/13 18:42
legnaleurc:system("A.exe &"); 03/13 21:33
tsaiminghan:ShellExcuteEx 03/14 01:03
ko1:system("start A.exe"); system("start B.exe"); 03/24 16:23