vaguiners

WBatch 1.0

Jan 31st, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::Versão 1.0
  2. :janela
  3. echo off
  4. mode 30,5
  5. :variaveis
  6. set p=Downloads
  7. set c=Cookies.txt
  8. set link=null
  9. set r=0
  10. set b=0
  11. set r=0
  12. set codigo=%random%
  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%>>historico.txt
  24. echo wget -P %p% -c %link%>>resumir_%codigo%.bat
  25. echo del resumir_%codigo%.bat>>resumir_%codigo%.bat
  26. echo exit>>resumir_%codigo%.bat
  27. if "%b%"=="0" wget -P %p% -c %link%
  28. start resumir_%codigo%.bat
  29. exit
  30. if "%b%"=="1" start wget --load-cookies=%c% -P %p% -c %link%
  31. exit
  32. :lista
  33. type %link%>>historico.txt
  34. if "%b%"=="0" start wget -c -P Downloads -i %link%
  35. if "%b%"=="1" start wget --load-cookies=%c% -c -P %p% -i %link%
  36. exit
Advertisement
Add Comment
Please, Sign In to add comment