An
Fri Jan 07 18:49:01 CST 2005
Thanks... I can run the vbscript without error. However I can't find the
file that was being saved. Am I able to specific the filename and its
location?
"mr unreliable" <ReplyToNewsgroup@notmail.com> wrote in message
news:%238ZTf0Q9EHA.3076@TK2MSFTNGP15.phx.gbl...
> hi All,
>
> Steve's code was perfectly good, IF YOU ARE CODING IN VISUAL BASIC!!!
>
> But hey, this is a vbScript ng.
>
> Try this (the same thing converted into vbs):
>
> --- <snip> ---
> Const sSource = "
http://www.dilbert.com"
> Const bGetAsAsync = False ' wait for response
> Dim xmlHTTP : Set xmlHTTP = CreateObject("Microsoft.XMLHTTP")
> Dim sHTMLPage ' as variant (subtype string)
>
> xmlHTTP.Open "GET", sSource, bGetAsAsync
> xmlHTTP.Send ' send it (to the web, wait for result)
>
> sHTMLPage = xmlHTTP.responseText ' (note: as TEXT)
> --- </snip> ---
>
> cheers, jw
>
> "Steven Burn" <somewhere@in-time.invalid> wrote in message
> news:%23hBbzT%238EHA.2316@TK2MSFTNGP15.phx.gbl...
>> Dim HTTPObj As MSXML2.XMLHTTP
>> Dim sURL As String, sPage As String, Lines As Variant
>>
>> sURL = "
http://www.somewhere.com/somepage.htm"
>> Set HTTPObj = New MSXML2.XMLHTTP
>> HTTPObj.open "get", sURL, False
>> HTTPObj.Send
>> sPage = HTTPObj.responseText
>>
>> --
>
>