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
- set a=0
- set down=0
- set custom=0
- set fim=%4
- if "%fim%"=="4Chan" set down=1
- if "%fim%"=="BRChan" set down=2
- if "%down%"=="0" goto normal
- :custom_0
- set custom=1
- set board=%1
- set thread=%2
- set argumentos=%3
- goto verificar_argumntos
- :custom_1
- if "%down%"=="1" goto 4chan
- if "%down%"=="2" goto BRchan
- :4chan
- 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 "%a%"=="1" start img\%board%-%thread%
- exit
- :BRChan
- if "%s%"=="0" echo start wget -H --no-directories -D brchan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://www.brchan.org/%board%/res/%thread%.html>>Update.bat
- wget -H --no-directories -D brchan.org -r -l 1 -U Mozilla -A jpeg,jpg,png,gif -nc --wait 3 --random-wait -P img\%board%-%thread% -e robots=off http://www.brchan.org/%board%/res/%thread%.html
- if "%a%"=="1" start img\%board%-%thread%
- exit
- :normal
- cls
- echo.
- set /p board="Board: "
- set /p thread="Thread: "
- set /p argumentos="Argumentos: "
- if "%board%"=="u" goto up
- 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
- find /i "a" < argumentos.txt > $.txt
- if "%errorlevel%"=="0" set a=1
- del $.txt
- del argumentos.txt
- cls
- if "%custom%"=="1" goto custom_1
- 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 "%a%"=="1" start img\%board%-%thread%
- if "%e%"=="1" exit
- goto inicio
- :up
- start Update.bat
- exit
- ::4Chan Batch Downloader - ChangeLog
- 1.7 - 30/06/2012
- : Adaptado com a interface grafica.
- v1.6 - 13/06/2012
- : Adicionado argumento para abrir a pasta ao terminar o download.
- v1.5 - 04/05/2012
- : Adicionado a opção para abrir o update.bat
- 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