Answer the question
In order to leave comments, you need to log in
Download images by url to pc using vbs?
You need to download images by url using a vbs script, on a computer. Where can I find information on this topic?
Answer the question
In order to leave comments, you need to log in
Why vbs if there is wget? If vbs is required, look towards launching third-party applications like wget from vbs.
as I understand it, vbs is launched independently, by the interpreter? If yes, google UrlDownloadToFile
If we are talking about WSH VBS, here is the simplest example:
sUrl = "http://coverlib.com/Download/1729291/The_Prodigy-The_Fat_Of_The_Land_UK-Front-.JPG"
sPath = "C:\Test\cover.jpg"
With CreateObject("Microsoft.XMLHTTP")
.Open "GET", sUrl, False
.Send
aContent = .ResponseBody
End With
With CreateObject("ADODB.Stream")
.Type = 1 ' adTypeBinary
.Open
.Write aContent
.SaveToFile sPath, 2 ' adSaveCreateOverWrite
.Close
End With
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question