Batch processing automatically starts the QQ software. The premise is that the installation directory of QQ is unknown. It is best to extract it from the registry. It is required that QQ installed in different directories can all be started, including other disks. Thank you.
The following is what I made, but it is not easy to operate under different disks. It can only be like this.
@echo off
rem I don't know which disk it is, so I can only try one disk at a time.
c:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%i
if exist qq.exe goto 5
d:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%i
if exist qq.exe goto 5
e:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%i
if exist qq.exe goto 5
f:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%i
if exist qq.exe goto 5
echo Startup failed...
pause >nul
del %0
exit
:5
rem This is to automatically start QQ.exe and automatically log in with the following QQ number, which can prevent account theft, hehe.. Please excuse me.
start qq.exe /START QQUIN:563259521 PWDHASH:mQY4466464646jtuw== /STAT:40
echo Startup successful....
del %0
pause>nul
exit


[ Last edited by hong9187 on 2007-6-23 at 01:28 AM ]
The following is what I made, but it is not easy to operate under different disks. It can only be like this.
@echo off
rem I don't know which disk it is, so I can only try one disk at a time.
c:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%iif exist qq.exe goto 5
d:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%iif exist qq.exe goto 5
e:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%iif exist qq.exe goto 5
f:
for /f "tokens=2 delims=:" %%i in ('reg query HKLM\SOFTWARE\TENCENT\QQ\'
do cd %%iif exist qq.exe goto 5
echo Startup failed...
pause >nul
del %0
exit
:5
rem This is to automatically start QQ.exe and automatically log in with the following QQ number, which can prevent account theft, hehe.. Please excuse me.
start qq.exe /START QQUIN:563259521 PWDHASH:mQY4466464646jtuw== /STAT:40
echo Startup successful....
del %0
pause>nul
exit



[ Last edited by hong9187 on 2007-6-23 at 01:28 AM ]
