本帖最后由 flashercs 于 2020-2-17 14:00 编辑
用curl.exe下载 https://curl.haxx.se/windows/- @echo off
- REM 设置curl.exe路径
- set curl="C:\Users\Flashercs\OneDriveTools\Tools\curl-7.68.0-win64-mingw\bin\curl.exe"
- REM 设置下载html的保存目录路径
- set dstdir="D:\sec\"
- REM 设置urls文件路径
- set urlfile="%~dp0urllist.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
- )
-
- )
- %curl% --config %tmpfile%
- del %tmpfile%
- popd
- pause
- exit /b
复制代码
|