diff --git a/batch/restart.bat b/batch/restart.bat index b6e9b03b..b3327d40 100644 --- a/batch/restart.bat +++ b/batch/restart.bat @@ -5,5 +5,5 @@ set local_path=%~dp0 taskkill /im %name% /F ping -n 2 127.0.0.1 > nul -START "" %local_path%%name% +START "" "%local_path%%name%" del /f "%~dp0%~nx0" \ No newline at end of file diff --git a/batch/update.bat b/batch/update.bat index 09bd4acb..36087ca3 100644 --- a/batch/update.bat +++ b/batch/update.bat @@ -8,13 +8,13 @@ set local_path=%~dp0 taskkill /im %exe_name% /F ping -n 2 127.0.0.1 > nul -del /f %local_path%%exe_name% -rmdir /s /q %local_path%%folder_name% -xcopy %local_path%%folder_tmp% %local_path% /E /I -rmdir /s /q %local_path%%folder_tmp% +del /f "%local_path%%exe_name%" +rmdir /s /q "%local_path%%folder_name%" +xcopy "%local_path%%folder_tmp%" "%local_path%" /E /I +rmdir /s /q "%local_path%%folder_tmp%" if %restart% == True ( - START "" %local_path%%exe_name% + START "" "%local_path%%exe_name%" ) del /f "%~dp0%~nx0" \ No newline at end of file