Put extra file paths in quotes so whitespace is allowed in paths

This commit is contained in:
Travis Nickles 2020-04-12 07:10:24 -05:00
parent 56dd7b9bf7
commit cb0df61e89

View File

@ -202,10 +202,10 @@ namespace DS4Windows
w.WriteLine("@echo off"); // Turn off echo
w.WriteLine("@echo Attempting to replace updater, please wait...");
// Move temp downloaded file to destination
w.WriteLine($"@mov /Y \"{tmpUpdaterPath}\" {Global.exedirpath}\\DS4Updater.exe");
w.WriteLine($"@mov /Y \"{tmpUpdaterPath}\" \"{Global.exedirpath}\\DS4Updater.exe\"");
if (deleteUpdatesDir)
{
w.WriteLine($"@del /S {Global.exedirpath}\\Update Files\\DS4Windows");
w.WriteLine($"@del /S \"{Global.exedirpath}\\Update Files\\DS4Windows\"");
}
w.WriteLine("@DEL \"%~f0\""); // Attempt to delete myself without opening a time paradox.
w.Close();