tempString = (string("cmd.exe /C \"") + tempString + "\"");
STARTUPINFO si = { sizeof(STARTUPINFO) };
PROCESS_INFORMATION pi;
CreateProcess(NULL, (LPSTR)tempString.c_str(), 0, 0, FALSE, CREATE_UNICODE_ENVIRONMENT, NULL, 0, &si, &pi);
I am starting a batch script from within another process through a dll. The issue is that the process is displaying:
error : Input redirection is not supported, exiting the process immediately.
How can I start a batch script so that it is independent of the calling process (will not close when callee closes) and does not output in the console of the calling process?