原帖由 shu111234 于 2010-11-18 14:31 发表
三楼的代码试验了,时间间隔、循环都可以,就是打开网页的时候IE浏览器会弹出来,然后再关闭,
我要的是完全隐藏的,看不见,在后台运行,怎么实现啊?
改一下代碼試試!-
- @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 "iexplore http://?",0
- echo ierunner.sendkeys "%%{F4}"
- echo wscript.sleep 60000
- echo ierunner.run "iexplore http://?",0
- echo ierunner.sendkeys "%%{F4}"
- echo wscript.sleep 120000
- echo ierunner.run "iexplore http://?",0
- echo ierunner.sendkeys "%%{F4}"
- echo wscript.sleep 180000
- )
- cscript //nologo "%temp%\iexplore.vbs"
- goto loop
复制代码
[ 本帖最后由 dennisle 于 2010-11-19 09:33 编辑 ] |