原帖由 shu111234 于 2010-11-17 09:21 发表
补充说明:详细说明一下,脚本需要执行如下操作:
1、打开网页1——关闭网页1——打开网页2——关闭网页2——打开网页3——关闭网页3——再打开网页1——关闭网页1——打开网页2……如此循环下去,
2、中间时间间隔 ...
Hi
試試看是否達到您的需求-
- @echo off
- :loop
- if exist "%temp%\iexplore.vbs" del /q "%temp%\iexplore.vbs" >nul
- >"%temp%\iexplore.vbs" (
- echo set ierunner = CreateObject^("wscript.shell"^)
- echo ierunner.run "cmd /c start iexplore http://?",0
- echo wscript.sleep 3000
- echo ierunner.sendkeys "%%{F4}"
- echo wscript.sleep 60000
- echo ierunner.run "cmd /c start iexplore http://?",0
- echo wscript.sleep 3000
- echo ierunner.sendkeys "%%{F4}"
- echo wscript.sleep 120000
- echo ierunner.run "cmd /c start iexplore http://?",0
- echo wscript.sleep 3000
- echo ierunner.sendkeys "%%{F4}"
- echo wscript.sleep 180000
- )
- cscript //nologo "%temp%\iexplore.vbs"
- goto loop
复制代码
|