From cb0df61e89ad7073d51949d6236f47249fda7532 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Sun, 12 Apr 2020 07:10:24 -0500 Subject: [PATCH] Put extra file paths in quotes so whitespace is allowed in paths --- DS4Windows/DS4Control/Util.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DS4Windows/DS4Control/Util.cs b/DS4Windows/DS4Control/Util.cs index 6691416..0307226 100644 --- a/DS4Windows/DS4Control/Util.cs +++ b/DS4Windows/DS4Control/Util.cs @@ -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();