C++调用本地exe程序

直接贴代码,如下:

TCHAR szCmdLine[] = { TEXT("D:\\unity5.4f1\\Editor\\Unity.exe") };
    STARTUPINFO StartInfo = { sizeof(StartInfo) };
    PROCESS_INFORMATION ProcInfo;
    StartInfo.dwFlags = STARTF_USESHOWWINDOW;
    StartInfo.wShowWindow = TRUE;
    CreateProcess(NULL, szCmdLine, NULL, NULL, NULL, NULL, NULL, NULL, &StartInfo, &ProcInfo);

可扫描一下提问码向我提问
C++调用本地exe程序_第1张图片

你可能感兴趣的:(C++)