Microsoft Knowledge Base Email Alertz

Error message when you run a script that is encoded by using Script Encoder (Screnc.exe) in Windows Server 2003 or in Windows XP

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 948527 - Last Review: February 18, 2008 - Revision: 1.0

Error message when you run a script that is encoded by using Script Encoder (Screnc.exe) in Windows Server 2003 or in Windows XP

SYMPTOMS

Consider the following scenario:
  • You use Script Encoder (Screnc.exe) to encode a script.
  • You run the encoded script on a computer that is running Windows Server 2003 or Windows XP.
In this scenario, you receive an error message that resembles the following:
Script Error
Line: Line_Number
Char: Character_number
Error: Invalid character
Note The Screnc.exe script encoder uses the Jscript.dll file or the Vbscript.dll file to encode a script. The Jscript.dll file or the Vbscript.dll file is included in Windows Internet Explorer 7.

CAUSE

This problem occurs because the non-encoded scripts use comments as encoding markers. These comments resemble one of the following:
  • '**Start Encode** for Microsoft Visual Basic Scripting Edition (VBScript)
  • //**Start Encode** for JScript
These comments and the lines that come before them should be visible in the encoded script. However, they are invisible.

RESOLUTION

To resolve this problem, download and then install Windows Script 5.7. To download Windows Script 5.7, visit one of the following Microsoft Web sites:

Windows Script 5.7 for Windows Server 2003
http://www.microsoft.com/downloads/details.aspx?FamilyID=f00cb8c0-32e9-411d-a896-f2cd5ef21eb4&DisplayLang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=f00cb8c0-32e9-411d-a896-f2cd5ef21eb4&DisplayLang=en)
Windows Script 5.7 for Windows XP
http://www.microsoft.com/downloads/details.aspx?FamilyID=47809025-d896-482e-a0d6-524e7e844d81&DisplayLang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=47809025-d896-482e-a0d6-524e7e844d81&DisplayLang=en)

MORE INFORMATION

For more information about Script Encoder, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/cbfz3598.aspx (http://msdn2.microsoft.com/en-us/library/cbfz3598.aspx)
For more information about Windows Script 5.7, visit the following Microsoft Web site:
http://www.microsoft.com/technet/scriptcenter/newswire/wsh57.mspx (http://www.microsoft.com/technet/scriptcenter/newswire/wsh57.mspx)

APPLIES TO
  • Windows Internet Explorer 7
  • Windows Internet Explorer 7 for Windows XP
  • Windows Internet Explorer 7 for Windows Server 2003
Keywords: 
kbprb kbexpertiseinter KB948527
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate