Advertisement
Guest User

Untitled

a guest
Jan 19th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.42 KB | None | 0 0
  1. @echo off
  2. setlocal
  3.  
  4. for /f "tokens=*" %%i in ('dir /b /ad Comics') do (
  5.  
  6.     pushd Comics\%%i
  7.     call:1 %%i
  8.     2>nul del temp.html
  9.     popd
  10.  
  11. )
  12.  
  13. goto:eof
  14.  
  15. :1
  16.  
  17. for %%i in (*.jpg) do set last=1%%~ni
  18. set /a last+=1
  19.  
  20. wget -q -O temp.html http://a-comics.ru/comics/%1/%last:~1%
  21.  
  22. for /f "tokens=7 delims== " %%i in ('findstr "http://a-comics.ru/.*/.*/%1/%last:~1%.jpg" temp.html') do (
  23.  
  24.     wget %%~i %%~nxi
  25.  
  26. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement