NapCatQQ/script/napcat.bat

18 lines
452 B
Batchfile
Raw Normal View History

2024-04-14 16:09:08 +00:00
@echo off
setlocal enabledelayedexpansion
:loop_read
2024-04-15 02:32:54 +00:00
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
set "RetString=%%b"
2024-04-14 16:09:08 +00:00
goto :napcat_boot
)
:napcat_boot
for %%a in ("!RetString!") do (
set "pathWithoutUninstall=%%~dpa"
)
set "QQPath=!pathWithoutUninstall!QQ.exe"
set ELECTRON_RUN_AS_NODE=1
echo !QQPath!
2024-05-22 11:58:45 +00:00
"!QQPath!" ./napcat.mjs %*