зеркало из https://github.com/mozilla/pjs.git
fix for bug#52834
This commit is contained in:
Родитель
5258c73422
Коммит
fa90a0cebb
|
@ -186,7 +186,7 @@ int ReplaceINIFile()
|
||||||
|
|
||||||
CString copycat = "copycat.bat";
|
CString copycat = "copycat.bat";
|
||||||
ofstream cc(copycat);
|
ofstream cc(copycat);
|
||||||
cc << command2 <<"\n";
|
cc << command2 <<"\necho off \ncls\n";
|
||||||
cc.close();
|
cc.close();
|
||||||
CString command3 ="copycat.bat";
|
CString command3 ="copycat.bat";
|
||||||
|
|
||||||
|
@ -194,6 +194,8 @@ int ReplaceINIFile()
|
||||||
ExecuteCommand((char *)(LPCTSTR) command3, SW_SHOW, INFINITE);
|
ExecuteCommand((char *)(LPCTSTR) command3, SW_SHOW, INFINITE);
|
||||||
|
|
||||||
DeleteFile("copycat.bat");
|
DeleteFile("copycat.bat");
|
||||||
|
CString unzipN6 = quotes +rootPath + "unzip.exe"+ quotes + "-o" + spaces + quotes + zipName + quotes;
|
||||||
|
ExecuteCommand((char *)(LPCTSTR) unzipN6, SW_SHOW, INFINITE);
|
||||||
DeleteFile(zipName);
|
DeleteFile(zipName);
|
||||||
|
|
||||||
SetCurrentDirectory(olddir);
|
SetCurrentDirectory(olddir);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче