@echo off
set aa=http://video.banma.com/frontpage2003/index0.shtml
for /f "tokens=3 delims=<=> " %%a in ('curl -s %aa%^|find ".swf"') do echo %%a>>temp.txt
for /f "tokens=7 delims=/." %%a in ('find "http" temp.txt') do set name=%%a.swf
for /f %%a in ('find "http" temp.txt') do set dowm=%%a
curl -o %name% %dowm%
@echo off
for /L %%a in (0,1,199) do (
echo do something.....
for /f "tokens=3 delims=<=> " %%b in ('curl -s http://video.banma.com/frontpage2003/index%%a.shtml^|find ".swf"') do (
echo %%b>>temp.txt
)
)
setlocal EnableDelayedExpansion
for /f %%c in ('find "http" temp.txt') do (
set dowm=%%c
for /f "tokens=7 delims=/." %%d in (!dowm!) do set name=%%d.swf
curl -o !name! !dowm!
)
觉得应该可以精短一点...技术有限请大家帮忙改改...
[ Last edited by bbq123bbq on 2007-11-25 at 04:30 AM ]作者: zerocq 时间: 2007-11-26 14:43 一句命令搞定