当前位置: 移动技术网 > IT编程>脚本编程>VBScript > 多进程的实现投票的vbs脚本

多进程的实现投票的vbs脚本

2017年12月12日  | 移动技术网IT编程  | 我要评论

徐至琦丑闻连环爆,中国礼品大全,警花白艳妮全集

复制代码 代码如下:

set shell=createobject("wscript.shell")
set http=createobject("microsoft.xmlhttp")

'获得"wscript.exe"进程的数量
a=0
for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_
if ps.name="wscript.exe" then a=a+1
next

if a<=5 then '默认的5进程,如果不足5个就运行一个自己
shell.run "wscript.exe """&wscript.scriptfullname&""""
else '第六个不参与刷票,用来退出程序
msgbox "按确定退出程序!",,"多进程刷票机 ——by 千寂孤城"
shell.run "taskkill /f /im wscript.exe",0
wscript.quit
end if

' 开始刷票
do
http.open "post","http://***/lookover.php?r1=2",false
http.send
loop

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网