批处理刷新网页

[复制链接]
查看11 | 回复2 | 2011-1-12 22:28:10 | 显示全部楼层 |阅读模式
写了一个批处理用来刷新网页流量,想每隔一段时间自动打开及关闭一个网页,网址位于wangzhi.txt文件中,但是实现不了,请问是什么原因?
@echo off
for /f "tokens=*" %%A in(wangzhi.txt) do (
start "%%A" & ping /n 15 127.0.0.1 >nul 2>nul
taskkill /f /im iexplore.exe
)

回复

使用道具 举报

千问 | 2011-1-12 22:28:10 | 显示全部楼层
start 命令的用法你弄错了,for中 重定向符前要用转义字符要实现功能@echo offfor /f "tokens=*" %%A in(wangzhi.txt) do (start "" "%%A"ping /n 15 127.1^>nul 2^>nultaskkill /f /im iexplore.exe)
回复

使用道具 举报

千问 | 2011-1-12 22:28:10 | 显示全部楼层
用refresh一样实现吧。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行