arguments << "/SE:/test/1 2.txt";myProcess->start(program, arguments);
arguments << "/SE:\\test\\1 2.txt";arguments << "/SE:\\test\\1\ 2.txt";arguments << "/S\"E:/test/1 2.txt\"";arguments << "/S\"E:/test/1\ 2.txt\"";
arguments << "/S\"E:/test/1 2.txt\"";
F:\Progra~1\1cv82\common\1cestart.exe DESIGNER /F"E:\test" /DumpIB"E:\test\dfsd2 gffgh 1.dt"
arguments << "/S\"E:\\test\\1 2.txt\"";
SharedExtProcess ExternalProcess::create(const QString &cmd, const QString ¶ms){ PROCESS_INFORMATION processInformation; STARTUPINFO startupInfo; memset(&processInformation, 0, sizeof(processInformation)); memset(&startupInfo, 0, sizeof(startupInfo)); startupInfo.cb = sizeof(startupInfo); BOOL result; QString c = QString("%1 %2").arg(cmd).arg(params); result = CreateProcess(NULL, (wchar_t*)c.utf16(),NULL, NULL, FALSE, 0, NULL, NULL, &startupInfo, &processInformation); QString err = ErrorExit(); qDebug()<<"try start result "<<result; if(result != 0) { SharedExtProcess res = SharedExtProcess(new ExternalProcess(processInformation.dwProcessId)); return res; } else { qDebug()<< err ; } return SharedExtProcess();}