Last active
February 26, 2017 20:09
-
-
Save tiborepcek/27057a9f0d10c4577525a697b95cb71a to your computer and use it in GitHub Desktop.
Simple AutoIt 3 script to download ZIP file from HTTP(S) thanks to free open source util curl and to automatically unzip it thanks to free open source util 7za.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$settings_file = @ScriptDir & "\settings.ini" | |
$url = IniRead($settings_file, "auto-dl-unzip", "url", "default") | |
$output_file = StringSplit($url, "/") | |
$output_file = $output_file[$output_file[0]] | |
RunWait(@ScriptDir & "\curl.exe -o " & $output_file & " " & $url, @DesktopDir) | |
RunWait(@ScriptDir & "\7za.exe x " & $output_file, @DesktopDir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment