vaguiners

WBatch 1.1

Feb 2nd, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::WBatch 1.1
  2. :janela
  3. echo off
  4. mode 30,5
  5. :variaveis
  6. set p=Downloads
  7. set c=Cookies.txt
  8. set i=historico.txt
  9. set link=null
  10. set r=0
  11. set b=0
  12. set r=0
  13. :script
  14. title 
  15. cls
  16. set /p link="Link: "
  17. echo %link% | find /i ".txt"
  18. if "%errorlevel%"=="0" set r=0
  19. if "%errorlevel%"=="1" set r=1
  20. set b=0
  21. if exist %c% set b=1
  22. if "%r%"=="0" goto lista
  23. echo %link%>>%i%
  24. if "%b%"=="0" wget -P %p% -c %link%
  25. if "%b%"=="1" start wget --load-cookies=%c% -P %p% -c %link%
  26. exit
  27. :lista
  28. type %link%>>%i%
  29. if "%b%"=="0" start wget -c -P %p% -i %link%
  30. if "%b%"=="1" start wget --load-cookies=%c% -c -P %p% -i %link%
  31. exit
Advertisement
Add Comment
Please, Sign In to add comment