From 88ae7fb8570ef5bf7c000a3211467b25f832c618 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Thu, 23 May 2024 23:44:10 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B[bugfix]=20Model=20:=20restart/upda?= =?UTF-8?q?te=E6=99=82=E3=81=ABpath=E3=81=AB=E3=82=B9=E3=83=9A=E3=83=BC?= =?UTF-8?q?=E3=82=B9=E3=81=8C=E3=81=82=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AB?= =?UTF-8?q?=E5=87=A6=E7=90=86=E3=81=8C=E5=A4=B1=E6=95=97=E3=81=99=E3=82=8B?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- batch/restart.bat | 2 +- batch/update.bat | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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