Skip to content

Instantly share code, notes, and snippets.

@tiborepcek
Last active February 26, 2017 20:09
Show Gist options
  • Save tiborepcek/27057a9f0d10c4577525a697b95cb71a to your computer and use it in GitHub Desktop.
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.
$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