无法通过“启动程序”;ShellExecuteEx“;或;CreateProcessW";来自以分号命名的文件夹

无法通过“启动程序”;ShellExecuteEx“;或;CreateProcessW";来自以分号命名的文件夹,shellexecuteex,Shellexecuteex,无法通过“ShellExecuteEx”或“CreateProcessW”从以分号命名的文件夹(如“C:;\text.exe”)启动程序,返回值为TRUE,但不运行任何程序 我的电脑是Win10的最新版本。你知道怎么修吗?谢谢 std::wstring appName = L"C:\\;\\test.exe"; SHELLEXECUTEINFO shExInfo = { 0 }; ZeroMemory(&shExInfo, sizeof(SHELLEX

无法通过“ShellExecuteEx”或“CreateProcessW”从以分号命名的文件夹(如“C:;\text.exe”)启动程序,返回值为TRUE,但不运行任何程序

我的电脑是Win10的最新版本。你知道怎么修吗?谢谢

std::wstring appName = L"C:\\;\\test.exe";
    SHELLEXECUTEINFO shExInfo = { 0 };
    ZeroMemory(&shExInfo, sizeof(SHELLEXECUTEINFO));
    shExInfo.cbSize = sizeof(shExInfo);
    shExInfo.fMask = 0;
    shExInfo.lpVerb = 0;
    shExInfo.lpFile = appName.c_str();
    shExInfo.lpParameters = NULL;
    shExInfo.lpDirectory = 0;
    shExInfo.nShow = SW_SHOW;
    shExInfo.hInstApp = 0;

    BOOL ret = ShellExecuteEx(&shExInfo);