dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")
dim bStrm: Set bStrm = createobject("Adodb.Stream")
dir = "http://i133.photobucket.com/albums/******"
fileName = array("woods","barn","sheep","god","ghost","deadend","mexico","desert","oasis","death")
'0,1,2 etc.
for i = 0 to 9
xHttp.Open "GET", "http://i133.photobucket.com/albums/******" & fileName(i) & ".jpg", False
xHttp.Send
with bStrm
.type = 1 '//binary
.open
.write xHttp.responseBody
.savetofile "images/" & fileName(i) & ".jpg", 2 '//overwrite
.close
end with
next
|