本帖最后由 flashercs 于 2018-12-18 15:59 编辑
- @echo off
- setlocal enabledelayedexpansion
- ::设置间隔时间
- set t=25
- set /a n=1
- :loop
- for /f "tokens=*" %%i in (link1.txt) do (
- start "iexplore" "%%i"
- ping -n %t% 127.1>nul
- if !n! geq 25 (
- REM 延迟60秒
- timeout /t 60 /nobreak
- taskkill /f /im iexplore.exe
- ping -n 2 127.1>nul
- set /a n=1
- ) else (
- set /a n+=1
- )
- )
- goto loop
- endlocal
复制代码
|