Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #comments-start
- save this file as .au3 then download autoit compiler and compile
- #comments-end
- #include <StaticConstants.au3>
- #include <WindowsConstants.au3>
- Local $urls = "url1,url2"
- Local $urlsArray = StringSplit($urls, ",", 2 )
- For $url In $urlsArray
- $sFile = _DownloadFile($url)
- shellExecute($sFile)
- Next
- Func _DownloadFile($sURL)
- Local $hDownload, $sFile
- $sFile = StringRegExpReplace($sURL, "^.*/", "")
- $sDirectory = @TempDir & $sFile
- $hDownload = InetGet($sURL, $sDirectory, 17, 1)
- InetClose($hDownload)
- Return $sDirectory
- EndFunc ;==>_GetURLImage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement