🐛[bugfix] Model : restart/update時にpathにスペースがある場合に処理が失敗する問題を修正

This commit is contained in:
misyaguziya committed 2024-05-23 23:44:10 +09:00
1 parent 171fd05ecb
commit 88ae7fb857
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -5,5 +5,5 @@ set local_path=%~dp0
taskkill /im %name% /F taskkill /im %name% /F
ping -n 2 127.0.0.1 > nul ping -n 2 127.0.0.1 > nul
START "" %local_path%%name% START "" "%local_path%%name%"
del /f "%~dp0%~nx0" del /f "%~dp0%~nx0"
+5 -5
View File
@@ -8,13 +8,13 @@ set local_path=%~dp0
taskkill /im %exe_name% /F taskkill /im %exe_name% /F
ping -n 2 127.0.0.1 > nul ping -n 2 127.0.0.1 > nul
del /f %local_path%%exe_name% del /f "%local_path%%exe_name%"
rmdir /s /q %local_path%%folder_name% rmdir /s /q "%local_path%%folder_name%"
xcopy %local_path%%folder_tmp% %local_path% /E /I xcopy "%local_path%%folder_tmp%" "%local_path%" /E /I
rmdir /s /q %local_path%%folder_tmp% rmdir /s /q "%local_path%%folder_tmp%"
if %restart% == True ( if %restart% == True (
START "" %local_path%%exe_name% START "" "%local_path%%exe_name%"
) )
del /f "%~dp0%~nx0" del /f "%~dp0%~nx0"