次のコードを実行すると、フォルダーに次のように表示されることを除いて、すべてが思い通りに実行されます: test2﷽﷽ꮫꮫꮫꮫﻮﻮﻮ</p>
ここで何が起こっているのですか?
std::string arrString[3] = {" /C mkdir C:\\Users\\Andrew\\Desktop\\test1"," /C mkdir C:\\Users\\Andrew\\Desktop\\test2"," /C mkdir C:\\Users\\Andrew\\Desktop\\test3"};
LPWSTR cmd =L"C:\\Windows\\System32\\cmd.exe";
int i;
for(i=0; i<3; i++)
{
STARTUPINFO info={sizeof(info)};
PROCESS_INFORMATION processInfo;
vector<wchar_t> cmdline(arrString[i].begin(), arrString[i].end());
CreateProcessW(cmd, &cmdline[0], NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo);
OutputDebugStringW(L"My output\nstring.");
}
}