wget¶
wget <OPTION> <URL>
download to current working folder¶
download to a target folder¶
unpack the archive¶
mkdir -p /path/to/directory
unzip filename.zip -d /path/to/directory
tar -xvf filename.tar --C /path/to/directory
tar -xvf filename.tar --directory /path/to/directory
dos¶
@echo off
set wget="wget.exe"
set despath="C:/Files"
set website="https://www.example.com/data/"
%wget% -P %despath% -A .zip -N -nd -r -l1 %website%
%wget% -P %despath% -A .ZIP -N -nd -r -l1 %website%
@pause
Note: extension is case sensitive. Extension .ZIP should also be considered