Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

msxml2.xmlhttp.3.0 .. HELP

Status
Not open for further replies.

trytofixalot

Technical User
Jun 28, 2010
8
GB
The following VBS works on various platforms, but i'm struggling to determine why its failing on a subset .. I have a feeling it may have something to do with a version of MSXML or could it be that native XMLHTTP support is disabled ?
Is there a better to pull this information ??
Any help appreciated.

option explicit

Dim xmlhttp
Dim objFSO
Dim objFile

set xmlhttp = createobject("msxml2.xmlhttp.3.0")

'Request the page
xmlhttp.open "get", " false
xmlhttp.send

'Create a text file
set objFSO = createobject("scripting.filesystemobject")
set objFile = objFSO.createtextfile("scansafe.txt")

'Output the response
objFile.write(xmlhttp.responseText)

'Close the file
objFile.close

'Remove object references
set objFile = nothing
set objFSO = nothing
set xmlhttp = nothing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top