中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-05 06:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 请帮我看下这段批处理用VBS怎么写`` 查看 745 回复 0
楼 主 请帮我看下这段批处理用VBS怎么写`` 发表于 2007-07-08 19:06 ·  中国 重庆 沙坪坝区 电信
中级用户
★★
金牌会员
积分 315
发帖 152
注册 2007-01-25 23:55
19年会员
UID 77669
性别 男
状态 离线
:kaishi
ping -n 30 127.0.0.1
tasklist | find /i "ssp.exe" >nul 2>nul || shutdown /s /t 30
goto kaishi


可不可以加到其他的VBS里面``功能不变
set Ws = WScript.CreateObject("WScript.Shell")
count=0
for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_
if ps.name="wscript.exe" then count=count+1
next
if count > 2 then wscript.quit
i=1
for i = 1 to 3
i=i-1
WScript.Sleep(1000*60*0.1)
ws.run "arp -s 192.168.0.1 00-e0-4c-39-70-9e",0
next
论坛跳转: