Microsoft Vbscript Compilation Error 800a03ee Expected
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Microsoft Vbscript Compilation Error Expected ')'
workings and policies of this site About Us Learn more about Stack microsoft vbscript compilation error expected statement Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs microsoft vbscript compilation error 800a0400 Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join
Microsoft Vbscript Compilation Error Expected End Of Statement
them; it only takes a minute: Sign up vbs syntax error: 800A03EE ')' expected up vote 0 down vote favorite I try to execute this in a file called 'addcurrentkey.vbs' But it says ')' is expected in row 1. Character 38. I tried this tutorial: http://www.codeproject.com/Articles/16569/Autorun-Applications Why can't I execute a .vbs file? Private Sub AddCurrentKey(ByVal name As String,
Microsoft Vbscript Compilation Error '800a0401'
ByVal path As String) Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True) key.SetValue(name, path) End Sub visual-studio vba vbscript share|improve this question edited Sep 12 '13 at 1:59 asked Sep 11 '13 at 23:20 user10056 33110 2 That's not all of your code, and you don't get the error trying to "save this in a file". Please edit your question to provide the code before this procedure declaration, and to provide more details. There are no errors in line 1 of the code you posted. –Ken White Sep 11 '13 at 23:24 @KenWhite it says line one, which is "Private Sub AddCurrentKey(ByVal name As String, ByVal path As String)". Compile error Microsoft VBscript –user10056 Sep 11 '13 at 23:27 You said that already, and I'm telling you the error isn't there. Again, there is no error in line 1 of the code you posted. Please edit to provide more information, as I asked in my previous comment. Without it, you're probably not going to get help here, because you're not providing the
: 325 Scores: 1 Reward points : 0 Joined: 12/12/2006 Status: offline Error 800A03EE - Expected ')' Monday, April 09, 2007 8:51 PM (permalink) 0 Any ideas why the following gives this error in my script: expected statement error in vbscript Dim arrInfo(6) arrInfo = ("Cluster","Office","Discipline","System","Sequence","Revision") I'm 99.9% sure it didn't give this error
Microsoft Vbscript Compilation Error 800a0408
on Thursday when I left work for Easter, but it's certainly giving it today #1 alex87 Total Posts : 27 Scores: 0 Reward points : 0 Joined: 3/20/2007Location: Netherland Status: offline RE: Error 800A03EE - Expected ')' Monday, April 09, 2007 9:00 PM (permalink) 0 The Cause of Code 800A03EE Your VBScript contain is missing a argument. http://stackoverflow.com/questions/18752916/vbs-syntax-error-800a03ee-expected Note: The clue, Error: Expected ")'. There is something wrong with a bracket or a speech mark. Source: Microsoft VBScript compilation error, means there is a syntax error in your script, rather than a logical error with a server or network object. The Solutions The Windows Scripting Host gives us three useful clues, firstly, look on Line: 6, do count any remark or empty lines. Secondly, the Char: number (34), is very useful in http://www.visualbasicscript.com/Error-800A03EE-Expected-3939-m45621.aspx tracing the error. In this case there is something wrong at the end of line 6. Thirdly Error: ')' is pointing us to the script problem. Therefore, check the syntax of your script and balance your brackets. Example 1 of Script Code 800A03EE error Note: The Line: 6 Char 34 strcn It should be strcn) note the closing bracket 'CREATE USER AND SET PASSWORD strcn = "bilbo65" strsam= "bilbo65" strpasswd = sbuline9 Set objOU=GetObject("LDAP://ou=Droitwich,dc=cp,dc=com") objUser = objOU.Create("User", "cn=" & strcn objUser.Put "sAMAccountName","bilbo65" ObjUser.SetInfo objUser.SetPassword strpasswd Corrected Version 'CREATE USER AND SET PASSWORD strcn = "bilbo65" strsam= "bilbo65" strpasswd = sbuline9 Set objOU=GetObject("LDAP://ou=Droitwich,dc=cp,dc=com") objUser = objOU.Create("User", "cn=" & strcn) objUser.Put "sAMAccountName","bilbo65" ObjUser.SetInfo objUser.SetPassword strpasswd Hope this helps, greetz #2 markmcrobie Total Posts : 325 Scores: 1 Reward points : 0 Joined: 12/12/2006 Status: offline RE: Error 800A03EE - Expected ')' Monday, April 09, 2007 9:09 PM (permalink) 0 Sorted it: arrInfo = Array("Cluster","Office","Discipline","System","Sequence","Revision") Instead of: arrInfo = ("Cluster","Office","Discipline","System","Sequence","Revision") #3 markmcrobie Total Posts : 325 Scores: 1 Reward points : 0 Joined: 12/12/2006 Status: offline RE: Error 800A03EE - Expected ')' Monday, April 09, 2007 10:45 PM (permalink) 0 It WAS working, but now i'm getting a "Type Mismatch" 800A000D error on the same line #4 markmcrobie Tot
360 games PC games https://support.microsoft.com/en-us/kb/188275 Windows games Windows phone games Entertainment All Entertainment http://www.codingforums.com/asp/31498-microsoft-vbscript-compilation-error-expected.html Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet microsoft vbscript Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All microsoft vbscript compilation Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
New? Today's Posts FAQ Rules Guidelines Search Advanced Search Forum :: Server side development ASP Microsoft VBScript compilation error Expected ')' If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Enjoy an ad free experience by logging in. Not a member yet? Register. Results 1 to 3 of 3 Thread: Microsoft VBScript compilation error Expected ')' Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Rate This Thread Current Rating Excellent Good Average Bad Terrible 01-14-2004,04:29 AM #1 havey View Profile View Forum Posts Regular Coder Join Date Mar 2003 Posts 165 Thanks 0 Thanked 0 Times in 0 Posts Microsoft VBScript compilation error Expected ')' can someone help me out, i get this error with teh indicator pointing at the comma between these: AFRICAN","CARIBBEAN Microsoft VBScript compilation error '800a03ee' Expected ')' /zzzz/1.asp, line 12 arrCuisines = ("AFRICAN","CARIBBEAN","CHINESE","CONTINENTAL","DUTCH","EAST_INDIAN","ENGLISH","ETHIOPIAN","FONDUES" ,"FRENCH","FUSION","GERMAN","GREEK","ITALIAN","JAPANESE","JEWISH","KOREAN","MEDITERRANEAN","MEXICAN" ,"MONGOLIAN","PAKISTANI","PHILIPPINE","PIZZA","PORTUGUESE","RIBS","STEAK_HOUSES","THAILAND","UKRAINI AN","VEGETARIAN","VIETNAMESE","WEST_INDIAN") Reply With Quote 01-14-2004,06:08 AM #2 allida77 View Profile View Forum Posts Regular Coder Join Date Jun 2002 Location Cincinnati, OH Posts 545 Thanks 0 Thanked 0 Times in 0 Posts If it is an array then: arrCuisines = array("AFRICAN","CARIBBEA.......... Reply With Quote 01-14-2004,07:39 AM #3 havey View Profile View Forum Posts Regular Coder Join Date Mar 2003 Posts 165 Thanks 0 Thanked 0 Times in 0 Posts thanks!