[ Last edited by namejm on 2007-3-5 at 05:27 PM ]作者: zh159 时间: 2007-3-6 04:52 即时监控方面的活不是批处理的强项,所以还是老老实实10秒后再再登陆另外一个QQ吧作者: vkill 时间: 2007-3-6 04:59 不要用QQ.exe登陆,做个批处理登陆就可以,不过方法不是很好作者: 328781160 时间: 2007-3-6 05:10 乱写了一个,不知道可不可以:(
@echo off
cls
color 0a
tasklist>"%userprofile%\Local Settings\Temp\tasklist.txt"
find /i "qq.exe" "%userprofile%\Local Settings\Temp\tasklist.txt"
if "%errorlevel%"=="1" goto a
if "%errorlevel%"=="0" goto b
:a
cls
@ for %%a in (c d e f g h i j k l m n o p q r s t u v w x y x z) do for /f "tokens=*" %%i in ('dir /s/b/a-d %%a:\qq.exe') do echo %%i & start "" "%%i">nul
del /f /q"%userprofile%\Local Settings\Temp\tasklist.txt"
goto done
:b
cls
echo.
echo 检测出你的机子上已有QQ了,为确保安全期间,请等待10秒!
echo.
set var=">"
set/p= 等待!: <nul
ping -n 2 127.1>nul
for /l %%i in (1,1,10) do (
set/p=%var%<nul
ping -n 2 127.1>nul
)
@ for %%a in (c d e f g h i j k l m n o p q r s t u v w x y x z) do for /f "tokens=*" %%i in ('dir /s/b/a-d %%a:\qq.exe') do echo %%i & start "" "%%i">nul
del /f /q"%userprofile%\Local Settings\Temp\tasklist.txt"
goto done作者: 50966084 时间: 2007-3-6 06:23 谢谢哈,我马上试~作者: zhoushijay 时间: 2007-3-6 10:50 echo off
:q
for %%i in (c,d,e,f) do for /f %%q in ('dir /s /b %%i:\QQ.exe') do start %%q
echo 请等待10秒......
ping -n 10 127.1 >nul 2>nul
goto :q