McKirahan
Tue Nov 02 11:22:37 CST 2004
"LR" <lr@l.l> wrote in message
news:_tOhd.10662$dj2.515938@news20.bellglobal.com...
> I use the following script to navigate to a site
> set objexplorer = createobject("InternetExplorer.Application")
>
> objexplorer.navigate
http://10.3.1.48/devadmin/sys_adm.dhtml
>
> I would like to use vbscript to save the page to a file. Any one know the
> syntax
>
> thank you
>
Try the following; watch for word-wrap.
Option Explicit
'*
Const cVBS = "10_3_1_48.vbs"
Const cURL = "
http://10.3.1.48/devadmin/sys_adm.dhtml"
'*
Dim objXML
Set objXML = CreateObject("Microsoft.XMLHTTP")
objXML.Open "GET", cURL, False
objXML.Send
If Err.Number <> 0 Or objXML.Status <> 200 Then
MsgBox "XMLHTTP Failed!",vbExclamation,cVBS
WScript.Quit
End If
Dim strXML
strXML = objXML.ResponseText
Set objXML = Nothing