- @echo off
- set /p zfc=
- set "zfc=%zfc:/20302/=/20304/%"
- set "zfc=dl=%zfc%"
- for /l %%i in (1,1,31) do call :re %%i
- set "url=%dl%?encfilekey=%encfilekey%&token=%token%"
- for /l %%i in (1,1,1000) do if not exist "D:\WXVideo\WX%%i.mp4" (set "outfile=D:\WXVideo\WX%%i.mp4"&goto :dl)
- :dl
- curl -o "%outfile%" -k --connect-timeout 15 --max-time 360 "%url%"
- pause&exit
- :re
- for /f "tokens=%1 delims=?&" %%i in ("%zfc%") do set "%%i"
复制代码
|