blackretina

imagedl.bat

Mar 22nd, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. setlocal enabledelayedexpansion
  2.  
  3. :LoopStart
  4. set "PREFIX="
  5.  
  6. set /p REFERER=Enter The referer URL:%=%
  7. set /p FNP=Enter the file name prefix:%=%
  8. set /p PREFIX=Enter any prefix for numbers 0-9:%=%
  9. set /p LOWERBOUND=Enter lower bound:%=%
  10. set /p UPPERBOUND=Enter upper bound:%=%
  11. set /p EXTENSION=Enter the extension:%=%
  12. set MAXBOUND=%UPPERBOUND%
  13.  
  14. if %LOWERBOUND% LSS 10 (
  15. if %UPPERBOUND% GTR 9 (
  16. set UPPERBOUND=9
  17. )
  18. )
  19.  
  20. if %LOWERBOUND% LSS 10 (
  21. for /l %%x in (%LOWERBOUND%, 1, %UPPERBOUND%) do (
  22. "C:\Program Files (x86)\GnuWin32\bin\wget" --no-check-certificate --secure-protocol=TLSv1 --random-wait --referer=%REFERER% -r -p -e robots=off -U mozilla "%REFERER%%FNP%%PREFIX%%%x%EXTENSION%"
  23. )
  24. set LOWERBOUND=10
  25. set UPPERBOUND=%MAXBOUND%
  26. )
  27.  
  28. for /l %%x in (%LOWERBOUND%, 1, %UPPERBOUND%) do (
  29. "C:\Program Files (x86)\GnuWin32\bin\wget" --no-check-certificate --secure-protocol=TLSv1 --random-wait --referer=%REFERER% -r -p -e robots=off -U mozilla "%REFERER%%FNP%%%x%EXTENSION%"
  30. )
  31.  
  32. set /P REPEAT=Enter y to repeat:%=%
  33. if %REPEAT%==y GOTO LoopStart
  34.  
  35. pause
Advertisement
Add Comment
Please, Sign In to add comment