This example show how to download a file in batch, and unzip or unrar it.
Again this example uses external executables.
Code Download + UnZIP:
(This code uses the standard Windows unzip function.)
Code Download + UnRAR:
(This code uses an external executable from www.rarlab.com.)
Download files:
http://l0calh0st.ws/batch/wget.exe
http://l0calh0st.ws/batch/unrar.exe
Again this example uses external executables.
Code Download + UnZIP:
Code:
@echo off
wget.exe http://l0calh0st.ws/wjcleaner_source.zip
unzip wjcleaner_source.zip
pause
Code Download + UnRAR:
Code:
@echo off
wget.exe http://l0calh0st.ws/wjcleaner_source.zip
unrar.exe wjcleaner_source.zip
pause
Download files:
http://l0calh0st.ws/batch/wget.exe
http://l0calh0st.ws/batch/unrar.exe