Why restrict your self to downloading text files?
VBScript can easily download any type file, including password-protected
files (if you know the username and password), by using the xmlhttp object
included with most recent versions of Windows.
Groups.google can give you a relatively short list of hits, so you don't
have to wade through millions of useless info. Go to groups.google.com and
paste the following into the search box:
download file xmlhttp group:*.scripting.vbscript
-Paul Randall
Short answer is it can be downloaded from the URL, but it will still
be a PDF - unless you have a PDF to Text converter to do that part of
the job.
The following routine will retrieve the file from the web ...
Sub DownBinFile(FilePath, sURL)
const adTypeBinary = 1
const adModeReadWrite = 3
const adSaveCreateOverwrite = 2
' Create an xmlhttp object:
set oXML = CreateObject("MSXML2.XMLHTTP")
oXML.open "GET", sURL, False
oXML.send
With CreateObject("ADODB.Stream")
.type = adTypeBinary
.mode = adModeReadWrite
.open
Do Until oXML.readyState = 4 : Wscript.Sleep 50 : loop
.write oXML.responseBody
.savetofile FilePath, adSaveCreateOverwrite
End With ' ADODB.Stream
End Sub
The Filepath is the name and location where the result is to be
stored, while sURL contains the full designation of the URL, including
the http:// part. This could be used for ftp downloads as well, as
long as the proper inline login syntax is provided as part of the sURL
string.
The conversion of the pdf is not part of my expertise, so you're on
your own on that part.
Tom Lavedas
***********
http://there.is.no.more/tglbatch/
The OP was in need of a PDF to text converter.
http://www.foolabs.com/xpdf/download.html
"T Lavedas" <tglb...@cox.net> wrote in message
news:cf68fdb1-e510-4a73...@l1g2000yqk.googlegroups.com...