![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-05 04:39 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Seek: Batch script to automatically start QQ software |
| Printable Version 1,612 / 6 |
| Floor1 hong9187 | Posted 2007-06-23 00:34 |
| 新手上路 Posts 6 Credits 15 | |
|
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 %%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 ] |
|
| Floor2 wudixin96 | Posted 2007-06-23 00:43 |
| 银牌会员 Posts 931 Credits 1,928 | |
|
'reg query HKLM\SOFTWARE\TENCENT\QQ /v "Install"
Does this value still exist after QQ is deleted? |
|
| Floor3 hong9187 | Posted 2007-06-23 01:01 |
| 新手上路 Posts 6 Credits 15 | |
| Floor4 fengzi | Posted 2007-06-23 03:01 |
| 中级用户 Posts 152 Credits 315 | |
|
@echo off
@set char=qq.exe @for %%a in (c d e) do for /f "tokens=*" %%i in ('dir /s/b/a-d %%a:\%char%') do echo %%i & start "" "%%i" /start QQUIN:485613 PWDHASH:nd+V9o2jQF2kbXAxlZLX+Q== /stat:40 & start "" "%%i" /start QQUIN:64388549 PWDHASH:nd+V9o2jQF2kbXAxlZLX+Q== /stat:40 |
|
| Floor5 hong9187 | Posted 2007-06-23 10:17 |
| 新手上路 Posts 6 Credits 15 | |
|
Thanks to fengzi, this can achieve my purpose. But if there are QQ.exe in different directories of the computer, many QQ will be started. Can I start only the most recently started QQ software? This is recorded in the registry.
Also, in the DIR command, I see that removing the /A-D parameter is also the same? |
|
| Floor6 hong9187 | Posted 2007-06-23 10:18 |
| 新手上路 Posts 6 Credits 15 | |
|
The startup speed is still faster with the values in the registry. What do you think?
|
|
| Floor7 fengzi | Posted 2007-06-23 22:11 |
| 中级用户 Posts 152 Credits 315 | |
|
Haven't tried starting QQ using the QQ REG path. But I usually make my own DIY portable version of QQ and don't know if it writes to the registry.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |