正文

定时关闭程序2006-02-21 19:07:00

【评论】 【打印】 【字体: 】 本文链接:http://blog.pfan.cn/xboy/10339.html

分享到:

@echo off

"E:\Program Files\Tencent\qq\CoralQQ.exe"

taskkill /im cmd.exe
@cmdow @ /hid

::when open two qq.exe,in case another cmd.exe is opened
taskkill /im cmd.exe /t

::record the log of this time to 1.txt
copy nul "H:\xboy\定时关闭进程\1.txt"
date /t >> "H:\xboy\定时关闭进程\1.txt"
echo. >> "H:\xboy\定时关闭进程\1.txt"

::generate the time file
::syntax is: "c:\s.vbs <seconds>"
copy nul c:\s.vbs
echo t = wscript.arguments.item(0) >> c:\s.vbs
echo wscript.sleep(t+"000") >> c:\s.vbs

::main program
:START
call c:\s.vbs 180
for /l %%i in (1,1,10) do call c:\s.vbs 10 | for /l %%c in (1,1,5) do taskkill /IM qq.exe /T >> "H:\xboy\定时关闭进程\1.txt" && time /t >> "H:\xboy\定时关闭进程\1.txt"
taskkill /im qqgame.exe /t
goto START

阅读(7702) | 评论(4)


版权声明:编程爱好者网站为此博客服务提供商,如本文牵涉到版权问题,编程爱好者网站不承担相关责任,如有版权问题请直接与本文作者联系解决。谢谢!

评论

loading...
您需要登录后才能评论,请 登录 或者 注册