@echo off&SetLocal EnableDelayedExpansion
for /L %%a in (1999 1 2006) do (
set year=%%a
set year=!year:~-2!
for /L %%b in (1 1 12) do (
set mouth=0%%b
set mouth=!mouth:~-2!
for /l %%c in (1,1,99) do (
set count=0%%c
set count=!count:~-2!
>>url.txt echo\http://202.202.12.56:8088/qikan/periodical.articles/kjjjsc/kjjj%%a/!year!!mouth!pdf/%%a!mouth!!count!.pdf
)
)
)
start url.txt
生成rul.txt,数量比较大,可能时间比较久点。