Question:
Microsoft VBScript compilation error 800A0401 HELP?!?
2011-09-03 04:58:04 UTC
I keep getting a pop-up on my laptop saying:

Windows Script Host
Script: C:\Documents and Settings\Me\Application Data\bits2\windows.CBS
Line: 33
Char: 428
Error: Expected end of statement
Code: 800A0401
Source: Microsoft VBScript compilation error

can someone please tell me how to fix this..? I'm really stuck!
Four answers:
?
2016-05-15 03:23:33 UTC
Hi Chelsea, Open your code and goto line 33. Now move cursor along to the 428th position on that line. Chances are you are missing a & or you have bad punctuation on the line, for example a comma (,) rather than a period (.) The error itself is caused by an expected statement call which most commonly arises when you have a missing or incorrect period [.], comma [,], Speech mark [' or ''], or an ampersand [&] For example if you had a line that said:   set wbemObjectSet = wbemServices, InstancesOf That would cause your error message because the comma and space after wbemServices needs to be a period and no space, that is:   set wbemObjectSet = wbemServices.InstancesOf Regards, Javalad
2011-09-03 05:12:05 UTC
Hi Chelsea,



Open your code and goto line 33.



Now move cursor along to the 428th position on that line.



Chances are you are missing a & or you have bad punctuation on the line, for example a comma (,) rather than a period (.)



The error itself is caused by an expected statement call which most commonly arises when you have a missing or incorrect period [.], comma [,], Speech mark [' or ''], or an ampersand [&]



For example if you had a line that said:



  set wbemObjectSet = wbemServices, InstancesOf



That would cause your error message because the comma and space after wbemServices needs to be a period and no space, that is:



  set wbemObjectSet = wbemServices.InstancesOf



Regards,



Javalad
2011-09-04 08:50:27 UTC
Restore your computer to an earlier state. Click Start, All Programs, Accessories, System Tools, System Restore. Click Next, and follow the on screen wizard. Install Reginout registry repair, and start a full registry scan. Fix any problems that are found.



Disable any devices that are not functioning properly. Click Start, type "Device Manager" in the Search box and press ENTER. You may see an exclamation mark before the name of a malfunctioning device. Right click such device and choose Disable option.
Alann
2011-09-03 05:02:21 UTC
Try reinstalling the program/software which is giving you the error. If the problem still persists, check over the internet if and which version of .NET Framework your program needs to function properly & download accordingly. If no .NET version is specified, download .NET 4.0 from Microsoft's website & install it. Restart your pc & try running your program again.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...