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!

correcting a syntax error in VB script

Status
Not open for further replies.

tom9698

Technical User
Jul 5, 2004
17
US
when I open Windows I get this error message:

Windows Script Host
c:\WINNT\system32\explorer5.vbs
line 5
char 22
syntax error
code 800A03EA
source: Microsoft VB script
compilation error

question--how can I repair the error? I'm a writer and I can't open Word Documents, etc. I'm not a techie, but will listen to the experts.
thanks
tom9698
 
In a windows explorer window right click the c:\WINNT\system32\explorer5.vbs file and choose edit.
Then post at least the 10 first lines of the script.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
When i try to either left or right click on the
c:\winnt\system32\explorer5.vbs--it only shows the
error message and it will not allow me to do anything.

is there a way to correct this error?
Tom9698
 
Right click means click once with the right button of the mouse in order to open the contextual menu.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
here is what I got from explorer 5.vbs

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

I hope this helps
tom9698
 
The syntax error is here:
If wsTCP.Connect("", ) = 0 Then
should be:
If wsTCP.Connect("") = 0 Then
BUT, are you sure you want an endless loop trying to connect to nymex ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I just wasnt Word to open documents properly and i only want
my system to function normally. what changes do yourecommend?
Tom9698
 
what changes do yourecommend?
First discover why you have this vbs in your system folder and how long has it been here.
Have you installed some third party add-in ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
No, I just want to know what changes i need to make so the documents open and the system works like it did before. I don't know what a third party add on is and never installed one. I just want things to run noramaaly--what should I do?
Tom
 
like it did before
before what ?
If nobody has installed nothing, then consider an anti viral scan of your box.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
can I delete this script? What would happen if i did that?
I'm desperate to be able to open my doc files in Word--I'm a theatre critic and I must deliver reviews asa
What can i do now to solve this problem without getting too complicated.
tom
 
I tried to delete this script but it comes back everytime. I then trieds to correct the error as you showed me but it came back. What can I do now?
 
thanks tsuji---what and how do I do that?
Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top