|
hong9187
新手上路

积分 15
发帖 6
注册 2007-6-22
状态 离线
|
『楼 主』:
求:批处理自动启动QQ软件
使用 LLM 解释/回答一下
批处理自动启动QQ软件,前提是不知QQ的安装目录,最好是从注册表中提取.要求能在装在不同目录下的QQ都能都能启动,包括其它的盘.谢谢
下面是我做的,但是在不同的盘下不好操作.只能是这样.
@echo off
rem 不知是那个盘上,只能是一个个盘的试.
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 启动失败啦。。。。
pause >nul
del %0
exit
:5
rem 这是自动启动QQ.exe.并用下面的QQ号码自动登陆,可以防盗号吧.呵..见笑.
start qq.exe /START QQUIN:563259521 PWDHASH:mQY4466464646jtuw== /STAT:40
echo 启动成功....
del %0
pause>nul
exit<img src="images/smilies/face-wink.png" align="absmiddle" border="0"><img src="images/smilies/face-surprise.png" align="absmiddle" border="0"><img src="images/smilies/face-raspberry.png" align="absmiddle" border="0">
Last edited by hong9187 on 2007-6-23 at 01:28 AM ]
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;):o:P
Last edited by hong9187 on 2007-6-23 at 01:28 AM ]
|

|
|
2007-6-23 00:34 |
|
|
wudixin96
银牌会员
    
积分 1928
发帖 931
注册 2007-1-6
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
'reg query HKLM\SOFTWARE\TENCENT\QQ /v "Install"
这个值在QQ删除后,依然存在吗?
'reg query HKLM\SOFTWARE\TENCENT\QQ /v "Install"
Does this value still exist after QQ is deleted?
|
|
2007-6-23 00:43 |
|
|
hong9187
新手上路

积分 15
发帖 6
注册 2007-6-22
状态 离线
|
|
2007-6-23 01:01 |
|
|
fengzi
中级用户
   金牌会员
积分 315
发帖 152
注册 2007-1-25
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
@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
@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
|
|
2007-6-23 03:01 |
|
|
hong9187
新手上路

积分 15
发帖 6
注册 2007-6-22
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
谢谢fengzi,这样是能够实现我的目的。可如果在电脑的不同的目录上都有QQ.exe的话,就会启动很多个QQ了,能否启动只最近启动的QQ软件,这个在注册表中有记录。
还有,DIR的命令中我看去掉/A-D这个参数也是一样的吗,
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?
|

|
|
2007-6-23 10:17 |
|
|
hong9187
新手上路

积分 15
发帖 6
注册 2007-6-22
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
启动速度还是用注册表中的值来得快,你说呢,
The startup speed is still faster with the values in the registry. What do you think?
|

|
|
2007-6-23 10:18 |
|
|
fengzi
中级用户
   金牌会员
积分 315
发帖 152
注册 2007-1-25
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
没试过用 QQ REG路径启动
不过我常常都是自己 DIY绿色版本的 QQ 不知道写注册表没 。
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.
|
|
2007-6-23 22:11 |
|