From 7bcea147995d0f44f32c49c294b434646c8b75ef Mon Sep 17 00:00:00 2001 From: 123233513 <37925595+123233513@users.noreply.github.com> Date: Thu, 5 Sep 2024 10:41:04 +0800 Subject: [PATCH] Update launcher.bat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %RetString% 增加引号,解决QQ目录包含空格的问题,比如安装在:C:\Program Files\Tencent\QQNT时,获取不到正确的路径 --- launcher/launcher.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/launcher.bat b/launcher/launcher.bat index 965624b1..3ceff3bc 100644 --- a/launcher/launcher.bat +++ b/launcher/launcher.bat @@ -21,7 +21,8 @@ for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\M ) :napcat_boot -for %%a in (%RetString%) do ( +:: %RetString% 增加引号,解决QQ目录包含空格的问题,比如安装在:C:\Program Files\Tencent\QQNT +for %%a in ("%RetString%") do ( set "pathWithoutUninstall=%%~dpa" )