
BAT批量搜索網(wǎng)址時(shí)如何依次觸發(fā)打開一定數(shù)量的網(wǎng)頁
q.txt中含有三百多個網(wǎng)址,我將q.txt中所有的網(wǎng)址提取到%w%.txt中,一行一個網(wǎng)址,想批量打開現(xiàn)在的問題是,我不想一次性打開三百多個網(wǎng)址,想依次觸發(fā)打開一定個數(shù)的網(wǎng)址(個數(shù)為變量x),比如第一次打開x個網(wǎng)址,然后等我處理完這x個網(wǎng)頁內(nèi)容,再手動觸發(fā)打開接下來x個網(wǎng)址的動作,依次進(jìn)行直至全部處理完成(如果中途停止,最好可以統(tǒng)計(jì)已經(jīng)打開過多少個網(wǎng)址)求教各位nclick="copycode($('code0'));">復(fù)制代碼
- @echo off
- cd /d %~dp0
- set n=0
- set w=%random%
- for /f delims= %%i in ('type q.txt^|findstr http') do (
- set /a n+=1
- echo %%i >>%w%.txt
- )
- echo 共%n%個網(wǎng)址,按任意鍵繼續(xù)&pause>nul
- set m=0
- for /f delims= %%i in (%w%.txt) do (
- start %%i
- set /a m+=1
- )
- echo 共打開%m%個網(wǎng)址,按任意鍵結(jié)束&pause>nul

