网站测试--交给电脑,自己上网泡妹仔

哎,最近说什么网站有错,叫人每时每刻进行访问,多没有意思啊
哎,千辛万苦就是苦了自己,还不如让电脑自己做呢,呵呵,
首先准备一个文件
wenlist.txt 文件,里面存着你要每时每刻的网站url,例如
.http://www.baidu.com/

一个执行文件,代码如下
::diplay the command on the screen
@echo off

::ping -n 10 127.0.0.1
set /a Start=%time:~6,2%
:ProDelay
set /a Now=%time:~6,2%
set /a Diff=%Now%-%Start%
rem 以下这一句可以防止秒数从59跳到1时产生的错误。
if %Diff% lss 0 set /a Diff=%Diff%+60
if %Diff% leq 3 goto roDelay

然后一个测试文件,代码如下
::diplay the command on the screen
@echo on
::clear screen
cls
echo           ***************************
echo The cmd is to test all webs
echo           ***************************

set path=C:\Program Files\Internet Explorer

::Test all addresses in the urllist.txt circularly
FOR /F "tokens=* delims=." %%i in (urllist.txt) do ((Start %%i)&&(delay.bat))    
呵呵,明白了,人啊,要把简单的事情交给电脑,然后自己在一旁上上网,泡泡妞!
上面不明白的可以联系我,962589149,加我时加上javaeye!  

你可能感兴趣的:(C++,c,C#,F#)