找了一下批量下载网量的如下代码:
@echo off
MD c:\biii\kk\KK024
REM 设置curl.exe路径
set curl="C:\biii\curl.exe"
REM 设置下载html的保存目录路径
set dstdir="C:\biii\kk\kk024\"
REM 设置urls文件路径
set urlfile="c:\biii\a\a24.txt"
set tmpfile="%temp%\~%random%"
pushd %dstdir%
>%tmpfile% (
echo --remote-name-all
echo --location
echo --compressed
echo --user-agent "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3"
for /f "usebackq delims=" %%A in (%urlfile%) do (
echo --url %%A
)