Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo off
- :inicio
- title 4Chan Batch Downloader
- set board=null
- set thread=null
- set argumentos=null
- :argumentos
- set s=0
- set e=0
- cls
- echo.
- set /p board="Board: "
- set /p thread="Thread: "
- set /p argumentos="Argumentos: "
- if "%board%"=="null" goto inicio
- if "%thread%"=="null" goto inicio
- :verificar_argumntos
- echo %argumentos%>argumentos.txt
- find /i "s" < argumentos.txt > $.txt
- if "%errorlevel%"=="0" set s=1
- del $.txt
- find /i "e" < argumentos.txt > $.txt
- if "%errorlevel%"=="0" set e=1
- del $.txt
- del argumentos.txt
- cls
- if "%s%"=="0" echo start wget -H --no-directories -D images.4chan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://boards.4chan.org/%board%/res/%thread%>>Update.bat
- wget -H --no-directories -D images.4chan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://boards.4chan.org/%board%/res/%thread%
- if "%e%"=="1" exit
- goto inicio
- ::4Chan Batch Downloader - ChangeLog
- v1.4 - 11/05/2012
- : Title jogado no link inicio
- : Link set removido
- : goto set alterado para goto inicio
- : Removido o cls no inicio do script
- : Retirado o if para caso a variavel argumento não fosse setada
- v1.3 - 11/05/2012
- : Retirado a variavel get
- : As outras variaveis foram adicionadas no link inicio
- : Removido o please enter
- : Adicionado o sisteminha de argumentos
- v1.2 - 30/04/2012
- : Todo topico baixado, será adicionado no arquivo update.bat caso queira atualiza-lo.
- v1.1 - 29/04/2012
- : Não é preciso mais copiar/deletar o wget.exe para a pasta onde será baixado as img
- : Removido as linhas para criar as pastas
- : Removido todos os cd
- v1.0 - 29/04/2012
- : Finalizado as linhas mais importantes, com alguns ajustes.
Add Comment
Please, Sign In to add comment