Can you help to write a vbs code to download all the pdf files from http server, for example to download all the pdf's from this website:
http://eur-lex.europa.eu/JOHtml.do?u...3E:SOM:PL:HTML.
I did something like this:
'========================
'--Zmienne--
sZrodlo = "target site"
sNazwaPliku = "file name"
'---Zmienne---
set oHTTP = WScript.CreateObject("Microsoft.XMLHTTP")
set oFSO = WScript.CreateObject("Scripting.FileSystemObject")
oHTTP.open "GET", sZrodlo, False
oHTTP.send
body8209 = oHTTP.responseBody
set oHTTP = nothing
sOut = ""
For i = 0 to UBound(body8209)
sOut = sOut & chrw(ascw(chr(ascb(midb(body8209,i+1,1)))))
Next
set oTS = oFSO.CreateTextFile(sNazwaPliku, True)
oTS.Write sOut
oTS.Close
set oTS = Nothing
set oFSO = Nothing
'========================
but I can download only one file at a time.