NapCatQQ/script/napcat.bat

23 lines
526 B
Batchfile
Raw Normal View History

2024-04-14 16:09:08 +00:00
@echo off
setlocal enabledelayedexpansion
:loop_read
for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
set "RetString=%%a"
goto :napcat_boot
)
goto :loop_read
:napcat_boot
for %%a in ("!RetString!") do (
set "pathWithoutUninstall=%%~dpa"
set "fileName=%%~na"
set "extension=%%~xa"
)
set "QQPath=!pathWithoutUninstall!QQ.exe"
set ELECTRON_RUN_AS_NODE=1
2024-04-14 17:38:46 +00:00
echo "!QQPath!"
"!QQPath!" %~dp0/napcat.cjs %*