This commit is contained in:
Oleg Korshul
2023-09-06 15:09:17 +03:00
parent 0c099cb4a3
commit 1194fcb012

View File

@ -453,7 +453,7 @@ namespace NSNetwork
std::wstring sFileURL = sFileURLOriginal;
NSStringExt::Replace(sFileDst, L"\\", L"/");
NSStringExt::Replace(sFileURL, L"'", L"\\'");
NSStringExt::Replace(sFileURL, L"'", L"%27");
std::wstring sApp = L"powershell.exe c \"(new-object System.Net.WebClient).DownloadFile('" + sFileURL + L"','" + sFileDst + L"')\"";
wchar_t* pCommandLine = new wchar_t[sApp.length() + 1];