Skip to content

Instantly share code, notes, and snippets.

@frainfreeze
Last active June 24, 2016 12:05
Show Gist options
  • Save frainfreeze/8d42b6ebb232f05c27bf7cf2457d1ab6 to your computer and use it in GitHub Desktop.
Save frainfreeze/8d42b6ebb232f05c27bf7cf2457d1ab6 to your computer and use it in GitHub Desktop.
Tiny batch script that makes use of wget.
title tinyGet
@echo off
echo image scrap/file dl/web mirror (img/dl/mir)
set /p option=
IF /i "%option%"=="img" goto imgScrap
IF /i "%option%"=="dl" goto dlFile
IF /i "%option%"=="mir" goto mirror
echo Not found.
goto commonexit
:imgScrap
set /p ImgLink=Copy the website URL and right click in this window. Scraps jpeg,jpg,bmp,gif,png:
echo Scraping all images from "%ImgLink%"
wget -r -P download -A jpeg,jpg,bmp,gif,png "%ImgLink%"
goto commonexit
:dlFile
set /p FileLink=Copy the direct link to file and right click in this window to download it:
wget download --no-check-certificate "%FileLink%"
goto commonexit
:mirror
set /p FileLink=Copy the website link and right click in this window to download it:
wget -m "%FileLink%"
goto commonexit
:commonexit
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment